Fixed RegEx to be super accurate

This commit is contained in:
benmcmahon100
2015-08-25 20:55:19 +01:00
parent 5441c5848e
commit 16cd733dd3

View File

@ -243,7 +243,7 @@ if(typeof prodOrDev !== 'undefined') {
editor.setValue(editor.getValue() + "-->");
editorValueForIFrame = editorValueForIFrame + "-->";
}
if(!editor.getValue().match(/\$\(\$\)/gi) ) {
if(!editor.getValue().match(/\$\s*?\(\s*?\$\s*?\)/gi) ) {
safeHTMLRun(false);
}
}