make loop protect work (#535)
This commit is contained in:
parent
193b15e074
commit
dcdb81aa80
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ class PreviewFrame extends React.Component {
|
|||
|
||||
if (JSHINT.errors.length === 0) {
|
||||
newContent = decomment(newContent, {
|
||||
ignore: /noprotect/g,
|
||||
ignore: /\/\/\s*noprotect/g,
|
||||
space: true
|
||||
});
|
||||
newContent = loopProtect(newContent);
|
||||
|
|
Loading…
Reference in a new issue