Fix typo in 9.16 (Sticky flag "y"...)
This commit is contained in:
parent
633db6fbe9
commit
04ce7283ad
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ The result is correct.
|
|||
|
||||
...But wait, not so fast.
|
||||
|
||||
Please note: the `regexp.exec` call start searching at position `lastIndex` and then goes further. If there's no word at position `lastIndex`, but it's somewhere after it, then it will be found:
|
||||
Please note: the `regexp.exec` call starts searching at position `lastIndex` and then goes further. If there's no word at position `lastIndex`, but it's somewhere after it, then it will be found:
|
||||
|
||||
```js run
|
||||
let str = 'let varName = "value"';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue