'scripts' => 'resources/jquery/jquery.async.js'
),
'jquery.autoEllipsis' => array(
- 'scripts' => 'resources/jquery/jquery.autoEllipsis.js'
+ 'scripts' => 'resources/jquery/jquery.autoEllipsis.js',
+ 'dependencies' => 'jquery.highlightText',
),
'jquery.checkboxShiftClick' => array(
'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js'
// TODO - need to be smarter about the character matching here.
// non latin characters can make regex think a new word has begun.
// look for an occurence of our pattern and store the starting position
- var pos = node.data.search( new RegExp( "\\b" + RegExp.escape( pat ), "i" ) );
+ var pos = node.data.search( new RegExp( "\\b" + $.escapeRE( pat ), "i" ) );
if ( pos >= 0 ) {
// create the span wrapper for the matched text
var spannode = document.createElement( 'span' );