fix(curriculum): hint label discrepancy (#54038)

This commit is contained in:
Punith G
2024-03-11 18:04:42 +05:30
committed by GitHub
parent 01dfea9263
commit 242290a1a0
@@ -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*\)/);