fix(curriculum): improve lazy matching test regex (#42882)

This commit is contained in:
awu43
2021-07-16 07:31:19 -07:00
committed by GitHub
parent cd1c16b3a9
commit b84e74ad42

View File

@ -33,7 +33,7 @@ assert(result[0] == '<h1>');
`myRegex` should use lazy matching
```js
assert(/\?/g.test(myRegex));
assert(/[^\\][\*\+\?]\?/.test(myRegex));
```
`myRegex` should not include the string `h1`