Fix bugs introduced in previous fix

This commit is contained in:
Daniel Glus 2018-07-10 13:57:36 -04:00
parent 2a8780369d
commit 8b0a19a617

View File

@ -102,7 +102,7 @@
whitelist = new AFCH.Page( AFCH.consts.whitelistTitle );
whitelist.getText().done( function ( text ) {
var $howToDisable,
userAllowed = ( new RegExp( '\|\s*' + user + '\s*}' ).test( text );
userAllowed = ( new RegExp( '\\|\\s*' + user + '\\s*}' ) ).test( text );
if ( !userAllowed ) {