mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 270297 "Search web for..." mangles selections containing newlines (regression from bug 221361) p=elmar.ludwig@uos.de r+sr=me
This commit is contained in:
parent
19f519f8da
commit
e693b211c3
@ -4801,7 +4801,8 @@ nsContextMenu.prototype = {
|
||||
pattern.test(searchStr);
|
||||
searchStr = RegExp.lastMatch;
|
||||
}
|
||||
searchStr = searchStr.replace(/\s*(.*?)\s*$/, "$1");
|
||||
searchStr = searchStr.replace(/^\s+/, "");
|
||||
searchStr = searchStr.replace(/\s+$/, "");
|
||||
searchStr = searchStr.replace(/\s+/g, " ");
|
||||
return searchStr;
|
||||
},
|
||||
|
@ -809,7 +809,8 @@ nsContextMenu.prototype = {
|
||||
pattern.test(searchStr);
|
||||
searchStr = RegExp.lastMatch;
|
||||
}
|
||||
searchStr = searchStr.replace(/\s*(.*?)\s*$/, "$1");
|
||||
searchStr = searchStr.replace(/^\s+/, "");
|
||||
searchStr = searchStr.replace(/\s+$/, "");
|
||||
searchStr = searchStr.replace(/\s+/g, " ");
|
||||
return searchStr;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user