mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854305 - Force search for all single word queries. r=mfinkle
This commit is contained in:
parent
5275b28e28
commit
a8312af3a7
@ -1524,8 +1524,8 @@ var BrowserApp = {
|
||||
let url = data.url;
|
||||
let flags;
|
||||
|
||||
if (!data.engine && /^[0-9]+$/.test(url)) {
|
||||
// If the query is a number and we're not using a search engine,
|
||||
if (!data.engine && /^\w+$/.test(url.trim())) {
|
||||
// If the query is a single word and we're not using a search engine,
|
||||
// force a search (see bug 993705; workaround for bug 693808).
|
||||
url = URIFixup.keywordToURI(url).spec;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user