From 8ca50440e4bb9d20ab9e7f08376dd22dfe58ce68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20J=C3=B8rgensen?= <28780271+lasjorg@users.noreply.github.com> Date: Tue, 26 Nov 2024 21:59:04 +0100 Subject: [PATCH] fix(curriculum): clarify requirements for id property (#57335) --- .../67168a7243b6396cb69c1bdf.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/67168a7243b6396cb69c1bdf.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/67168a7243b6396cb69c1bdf.md index 31efe8f81d3..e8e011de464 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/67168a7243b6396cb69c1bdf.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/67168a7243b6396cb69c1bdf.md @@ -7,7 +7,7 @@ dashedName: step-68 # --description-- -Finally, it is time to call the `removeSpecialChars` on the `id`, `title`, and `description` properties in your `taskObj`. +Call `removeSpecialChars` on the `title`, and `description` properties in your `taskObj`. For the `id` property, only call it on the `titleInput.value` part of the property value. This will remove issues with broken task data. @@ -15,22 +15,22 @@ With that you have completed the project. # --hints-- -You should call `removeSpecialChars` on `titleInput.value` when assigning the `id`. +You should call `removeSpecialChars` on `titleInput.value` when assigning the `id`. ```js -assert.match(code, /\s*id:\s*`\$\{removeSpecialChars\(titleInput\.value\)\.toLowerCase\(\s*\)\.split\(\s*('|")\s{1}\1\s*\)\.join\(\s*('|")-\2\s*\)\}-\$\{Date\.now\(\s*\)\}`\s*/) +assert.match(code, /\s*id:\s*`\$\{removeSpecialChars\(titleInput\.value\)\.toLowerCase\(\s*\)\.split\(\s*('|")\s{1}\1\s*\)\.join\(\s*('|")-\2\s*\)\}-\$\{Date\.now\(\s*\)\}`\s*/); ``` -You should call `removeSpecialChars` on `titleInput.value` when assigning the `title`. +You should call `removeSpecialChars` on `titleInput.value` when assigning the `title`. ```js -assert.match(code, /\s*title:\s*removeSpecialChars\(titleInput\.value\)\s*/,) +assert.match(code, /\s*title:\s*removeSpecialChars\(titleInput\.value\)\s*/); ``` -You should call `removeSpecialChars` on `descriptionInput.value` when assigning the `description`. +You should call `removeSpecialChars` on `descriptionInput.value` when assigning the `description`. ```js -assert.match(code, /\s*description:\s*removeSpecialChars\(descriptionInput\.value\)\s*/) +assert.match(code, /\s*description:\s*removeSpecialChars\(descriptionInput\.value\)\s*/); ``` # --seed--