From efe8114fc333fbe04ab978544f88c6c8b0415755 Mon Sep 17 00:00:00 2001 From: Jannis Klose <69921578+janni1288@users.noreply.github.com> Date: Wed, 10 Sep 2025 15:23:12 +0200 Subject: [PATCH] fix(curriculum): Regex should only allow == or === in equality check (#62134) --- .../blocks/workshop-note-taking-app/6881436e1e2afae400e8b4fe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/workshop-note-taking-app/6881436e1e2afae400e8b4fe.md b/curriculum/challenges/english/blocks/workshop-note-taking-app/6881436e1e2afae400e8b4fe.md index d145d2a70de..58552dafd12 100644 --- a/curriculum/challenges/english/blocks/workshop-note-taking-app/6881436e1e2afae400e8b4fe.md +++ b/curriculum/challenges/english/blocks/workshop-note-taking-app/6881436e1e2afae400e8b4fe.md @@ -18,7 +18,7 @@ Above your `currentContent = newContent;` line, add an `if` statement to check i You should add an `if` statement to check if `currentContent` is equal to `newContent`. If so, return. ```js -assert.match(code, /if\s*\(\s*currentContent\s*=={2,3}\s*newContent\s*\)\s*(?:{\s*return;?\s*}|return\s*;?)/); +assert.match(code, /if\s*\(\s*currentContent\s*={2,3}\s*newContent\s*\)\s*(?:{\s*return;?\s*}|return\s*;?)/); ``` # --seed--