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); } }