From 89773cd9e4e02aaf003a96eb4ed87ae8724aaf84 Mon Sep 17 00:00:00 2001 From: Jr Cenina <44345078+jayAardvark@users.noreply.github.com> Date: Tue, 30 Jan 2024 02:31:27 -0800 Subject: [PATCH] =?UTF-8?q?edit=20test=20to=20allow=20for=20flexible=20att?= =?UTF-8?q?ribute=20placement=20and=20accompanying=20=E2=80=A6=20(#53397)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../64fae068bcdc9c805bd8399e.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md index afaa870dadf..f70f86e2c65 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md @@ -13,16 +13,16 @@ To enable editing and deleting for each task, add an `onclick` attribute to both # --hints-- -You should add `onclick="editTask(this)"` as the first attribute of the edit button. +You should add `onclick="editTask(this)"` to your edit button. ```js -assert.match(code, /Edit<\/button>/) +assert.match(code, /]*onclick\s*=\s*("|')editTask\(this\)\1)[^>]*>Edit<\/button>/); ``` -You should add `onclick="deleteTask(this)"` as the first attribute of the delete button. +You should add `onclick="deleteTask(this)"` to your delete button. ```js -assert.match(code, /Delete<\/button>/) +assert.match(code, /]*onclick\s*=\s*("|')deleteTask\(this\)\1)[^>]*>Delete<\/button>/); ``` # --seed--