From d3708422dd7261c3a447ea5e8057508a315f5eca Mon Sep 17 00:00:00 2001 From: Prathamesh Gawas <41731424+Prathamesh010@users.noreply.github.com> Date: Sat, 9 Oct 2021 23:15:10 +0530 Subject: [PATCH] fix(curriculum): add test to check if the original variable is edited (#43791) * fix: add test to check if variable is edited * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.md Co-authored-by: Nicholas Carrigan (he/him) Co-authored-by: Nicholas Carrigan (he/him) --- .../remove-whitespace-from-start-and-end.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.md index 6caed07bf8..bb35ed6c03 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.md @@ -36,6 +36,12 @@ The `result` variable should not directly be set to a string assert(!code.match(/result\s*=\s*["'`].*?["'`]/)); ``` +The value of the `hello` variable should not be changed. + +```js +assert(hello === ' Hello, World! '); +``` + # --seed-- ## --seed-contents--