Correct glossary word boundary accents issue - refs #7233

1.10.x
Imanol Losada 11 years ago
parent aae5bc319a
commit 19995bb725
  1. 2
      main/inc/lib/javascript/jquery.highlight.js

@ -19,7 +19,7 @@ jQuery.fn.highlight = function(pat,real_code) {
//var pos = node.data.toUpperCase().indexOf(pat);
//Highlight strict, exact words
var SearchRegExp = new RegExp("(\\b)"+pat+"(\\b)","gi");
var SearchRegExp = new RegExp("(\\b|\\B)"+pat+"(\\b|\\B)","gi");
var pos = node.nodeValue.search(SearchRegExp);
if (pos >= 0 ) {

Loading…
Cancel
Save