Fixed bug in SeachHighlight.js.
This commit is contained in:
parent
61a62d75ea
commit
c9913e3d29
2 changed files with 3 additions and 2 deletions
|
@ -60,6 +60,7 @@ searchhi = {
|
|||
if (qmIndex == -1) return;
|
||||
var ampIndex = url.indexOf("&");
|
||||
var query = url.substring(qmIndex + 4, ampIndex != -1 ? ampIndex : url.length);
|
||||
if(query == "" || query.length < 2) return;
|
||||
query = query.replace(/,/g, ' ');
|
||||
query = unescape(query);
|
||||
searchhi.process(query);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue