From 718e849b8a8ec8a06b5e7a1c50e94cea11130de5 Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Fri, 11 Oct 2024 14:15:29 -0400 Subject: [PATCH] Minor tweak of lab csp1 Signed-off-by: David A. Wheeler --- docs/labs/csp1.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/labs/csp1.html b/docs/labs/csp1.html index b30e157c..9e18181c 100644 --- a/docs/labs/csp1.html +++ b/docs/labs/csp1.html @@ -53,7 +53,7 @@ "script-src": \[ "'self'" , (["'`])https://example\.com\1 \] , "style-src": \[ "'self'" \] - \} , + \} ,? \} \} \) \) ; --> @@ -129,9 +129,15 @@ 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 second statment. + Please update the second statement to use a semicolon terminator. +- absent: |- + \} \} \) \) ; $ + index: 1 + text: The correct answer is expected to end with `} } ) ) ;` ignoring + whitespace. Check that you have matching parentheses and braces. - text: I do not have more specific hints to provide. Please ensure that - the parentheses, braces, and brackets pair correctly. + the parentheses, braces, and brackets pair correctly, as that is + often the problem. # debug: true