fix(curriculum): update editable region and match solution (#52930)

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Johnson Shan
2024-01-08 16:13:08 -05:00
committed by GitHub
parent ba637b90e1
commit 1806895b05
@@ -14,8 +14,8 @@ After adding the task to the page, you should close the form modal to view the t
You should use `classList` to toggle the class `hidden` on `taskForm`.
```js
const splitter = code.split("taskData.forEach")
assert.match(splitter[1], /taskForm\.classList\.toggle\(('|")hidden\1\)/)
const splitter = code.split("taskData.forEach")[1].split("});")
assert.match(splitter[0], /taskForm\.classList\.toggle\(('|")hidden\1\)/)
```
# --seed--
@@ -329,9 +329,10 @@ taskForm.addEventListener("submit", (e) => {
`)
}
);
--fcc-editable-region--
--fcc-editable-region--
});
--fcc-editable-region--
--fcc-editable-region--
```