Skip to content

Commit

Permalink
Fixed RegEx to be super accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
benmcmahon100 committed Aug 25, 2015
1 parent 5441c58 commit 16cd733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/lib/coursewares/commonFrameWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 16cd733

Please sign in to comment.