From 6f8419c8a3e8497254a8100d3d9e7e6d47167a35 Mon Sep 17 00:00:00 2001 From: Krzysztof G <60067306+gikf@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:09:17 +0100 Subject: [PATCH] fix(curriculum): accept both quotes and double quotes (#53090) --- .../62a255dae245b52317da824a.md | 4 ++-- .../62a257659d0d1e2456f24ba2.md | 2 +- .../62a39f5a5790eb27c1e5d4bf.md | 2 +- .../62a3a0a3c0a4b32915d26a6e.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a255dae245b52317da824a.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a255dae245b52317da824a.md index 480e2f44476..b0aa1e6b42b 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a255dae245b52317da824a.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a255dae245b52317da824a.md @@ -20,13 +20,13 @@ Note how the line ends with a semi-colon. It is common practice in JavaScript to You should add a `console.log("Hello World");` line to your code. Don't forget the semi-colon. ```js -assert.match(code, /console\.log\("Hello World"\);/); +assert.match(code, /console\.log\(\s*('|")Hello World\1\s*\)\s*;/); ``` Your `console.log("Hello World");` line should be between your `script` tags. ```js -assert.match(code, /