Index: trunk/phase3/resources/jquery/jquery.highlightText.js |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | // TODO - need to be smarter about the character matching here. |
25 | 25 | // non latin characters can make regex think a new word has begun. |
26 | 26 | // look for an occurence of our pattern and store the starting position |
27 | | - var pos = node.data.search( new RegExp( "\\b" + RegExp.escape( pat ), "i" ) ); |
| 27 | + var pos = node.data.search( new RegExp( "\\b" + $.escapeRE( pat ), "i" ) ); |
28 | 28 | if ( pos >= 0 ) { |
29 | 29 | // create the span wrapper for the matched text |
30 | 30 | var spannode = document.createElement( 'span' ); |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -45,7 +45,8 @@ |
46 | 46 | 'scripts' => 'resources/jquery/jquery.async.js' |
47 | 47 | ), |
48 | 48 | 'jquery.autoEllipsis' => array( |
49 | | - 'scripts' => 'resources/jquery/jquery.autoEllipsis.js' |
| 49 | + 'scripts' => 'resources/jquery/jquery.autoEllipsis.js', |
| 50 | + 'dependencies' => 'jquery.highlightText', |
50 | 51 | ), |
51 | 52 | 'jquery.checkboxShiftClick' => array( |
52 | 53 | 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js' |