2 QUnit.module( 'mediawiki.RegExp' );
4 QUnit.test( 'escape', 16, function ( assert ) {
26 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
27 'abcdefghijklmnopqrstuvwxyz',
31 $.each( specials, function ( i, str ) {
32 assert.propEqual( str.match( new RegExp( mw.RegExp.escape( str ) ) ), [ str ], 'Match ' + str );
35 assert.equal( mw.RegExp.escape( normal ), normal, 'Alphanumerals are left alone' );
38 }( mediaWiki, jQuery ) );