From 16cd733dd33842291e59ef630dc121b0b4f3b97e Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Tue, 25 Aug 2015 20:55:19 +0100 Subject: [PATCH] Fixed RegEx to be super accurate --- public/js/lib/coursewares/commonFrameWork.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/lib/coursewares/commonFrameWork.js b/public/js/lib/coursewares/commonFrameWork.js index 6070ec0248..1696b87f3a 100644 --- a/public/js/lib/coursewares/commonFrameWork.js +++ b/public/js/lib/coursewares/commonFrameWork.js @@ -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); } }