Index: trunk/extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js |
— | — | @@ -508,7 +508,7 @@ |
509 | 509 | open: function() { |
510 | 510 | // Cache the articlepath regex |
511 | 511 | $(this).data( 'articlePathRegex', new RegExp( |
512 | | - '^' + ( wgServer + wgArticlePath ).escapeRE() |
| 512 | + '^' + $.escapeRE( wgServer + wgArticlePath ) |
513 | 513 | .replace( /\\\$1/g, '(.*)' ) + '$' |
514 | 514 | ) ); |
515 | 515 | // Pre-fill the text fields based on the current selection |
— | — | @@ -981,7 +981,7 @@ |
982 | 982 | flags += 'g'; |
983 | 983 | } |
984 | 984 | if ( !isRegex ) { |
985 | | - searchStr = searchStr.escapeRE(); |
| 985 | + searchStr = $.escapeRE( searchStr ); |
986 | 986 | } |
987 | 987 | try { |
988 | 988 | var regex = new RegExp( searchStr, flags ); |