make loop protect work (#535)

This commit is contained in:
Mr.tang 2018-02-09 11:46:47 -06:00 committed by Cassie Tarakajian
parent 193b15e074
commit dcdb81aa80

View file

@ -171,7 +171,7 @@ class PreviewFrame extends React.Component {
if (JSHINT.errors.length === 0) { if (JSHINT.errors.length === 0) {
newContent = decomment(newContent, { newContent = decomment(newContent, {
ignore: /noprotect/g, ignore: /\/\/\s*noprotect/g,
space: true space: true
}); });
newContent = loopProtect(newContent); newContent = loopProtect(newContent);