Merge pull request #7959 from erictleung/fix/update-test-to-accept-multiline-comment
Loosen RegEx to accept multi-line comments as well
This commit is contained in:
@ -2248,7 +2248,7 @@
|
||||
],
|
||||
"tests": [
|
||||
"assert(code.match(/^\\s*<!--/), 'message: Start a comment with <code><!--</code> at the top of your HTML.');",
|
||||
"assert(code.match(/<!--(?!(>|->|.*-->.*this line)).*this line.*-->/gi), 'message: Your comment should have the text <code>Only change code above this line</code>.');",
|
||||
"assert(code.match(/<!--(?!(>|->|.*-->.*this line))\\s*.*this line.*\\s*-->/gi), 'message: Your comment should have the text <code>Only change code above this line</code>.');",
|
||||
"assert(code.match(/-->.*\\n+.+/g), 'message: Be sure to close your comment with <code>--></code>.');",
|
||||
"assert(code.match(/<!--/g).length === code.match(/-->/g).length, 'message: You should have the same number of comment openers and closers.');"
|
||||
],
|
||||
|
Reference in New Issue
Block a user