зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
39815e3e45
Коммит
1c52dc0527
|
@ -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;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче