mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
Fixes comments top of code ambiguity
This commit is contained in:
parent
a1d7cfca57
commit
a5d26d1716
@ -2121,7 +2121,7 @@
|
||||
"Add a comment at the top of your HTML that says <code>Only change code above this line.</code>"
|
||||
],
|
||||
"tests": [
|
||||
"assert(editor.match(/<!--/g) && editor.match(/<!--/g).length > 0, 'Start a comment with <code><!--</code>.')",
|
||||
"assert(editor.match(/^<!--/) && editor.match(/<!--/g).length > 0, 'Start a comment with <code><!--</code> at the top of your HTML.')",
|
||||
"assert(editor.match(/this line/g) && editor.match(/this line/g).length > 0, 'Your comment should have the text <code>Only change code above this line</code>.')",
|
||||
"assert(editor.match(/-->.*\\n+.+/g), 'Be sure to close your comment with <code>--></code>.')"
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user