mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): hint label discrepancy (#54038)
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ You should create an `if` block.
|
||||
assert.match(code, /const\s+update\s*=\s*(?:\(\s*event\s*\)|event)\s*=>\s*\{\s*const\s+element\s*=\s*event\.target\s*;?\s*const\s+value\s*=\s*element\.value\.replace\(\s*\/\\s\/g\s*,\s*('|"|`)\1\s*\)\s*;?\s*if\s*\(/);
|
||||
```
|
||||
|
||||
Your `if` condition should check if `value` includes the `id` of the `element`.
|
||||
Your `if` condition should check that `value` does not include the `id` of the `element`.
|
||||
|
||||
```js
|
||||
assert.match(code, /const\s+update\s*=\s*(?:\(\s*event\s*\)|event)\s*=>\s*\{\s*const\s+element\s*=\s*event\.target\s*;?\s*const\s+value\s*=\s*element\.value\.replace\(\s*\/\\s\/g\s*,\s*('|"|`)\1\s*\)\s*;?\s*if\s*\(\s*!value\.includes\(\s*element\.id\s*\)/);
|
||||
|
||||
Reference in New Issue
Block a user