You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/labs/assert.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,14 @@ info =
6
6
text: "The whole point of this exercise is to NOT use `assert` as a way to validate input from untrusted users.",
7
7
examples: [
8
8
["assert !bindingResult.hasErrors();\n"]
9
-
]
9
+
],
10
10
},
11
11
{
12
12
absent: String.raw`^\s* if `,
13
13
text: "Begin with `if` so you can return a result if there are errors.",
14
14
examples: [
15
15
["return \"form\";"]
16
-
]
16
+
],
17
17
},
18
18
{
19
19
present: "(bindingresult|BindingResult)",
@@ -28,14 +28,14 @@ info =
28
28
text: "In Java, after the keyword `if` you must have an open left parenthesis. Conventionally there is one space between the `if` keyword and the open left parenthesis.",
29
29
examples: [
30
30
["if bindingResult.hasErrors"]
31
-
]
31
+
],
32
32
},
33
33
{
34
34
present: String.raw`^\s*if\s*\(\s*\!binding`,
35
35
text: "You have an extraneous `!` (not operator). Use the expression if (bindingResult.hasErrors()) ...",
Copy file name to clipboardExpand all lines: docs/labs/csp1.js
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ info =
7
7
examples: [
8
8
[
9
9
"import express from \"express\";"
10
-
]
11
-
]
10
+
],
11
+
],
12
12
},
13
13
{
14
14
absent: "const",
@@ -20,21 +20,21 @@ info =
20
20
examples: [
21
21
["const"],
22
22
["consthelmet = "]
23
-
]
23
+
],
24
24
},
25
25
{
26
26
present: String.raw`require \( helmet \)`,
27
27
text: "The parameter of a requirement statement must be string. Surround the term helment with double-quotes.",
28
28
examples: [
29
29
[" const helmet = require(helmet);"]
30
-
]
30
+
],
31
31
},
32
32
{
33
33
absent: "; $",
34
34
text: "JavaScript doesn''t require semicolon terminators, but the rest of the code uses them. You should try to match a coding style when modifying existing code unless there''s an important reason not to. Please update the first statment.",
35
35
examples: [
36
36
[" const helmet = require(\"helmet\")"]
37
-
]
37
+
],
38
38
},
39
39
{
40
40
absent: String.raw`\s* app \. use \( helmet \( \{`,
@@ -83,7 +83,7 @@ info =
83
83
},
84
84
{
85
85
text: "I do not have more specific hints to provide. Please ensure that the parentheses, braces, and brackets pair correctly, as that is often the problem."
0 commit comments