Merge pull request #2381 from vsemozhetbyt/patch-11

Fix typo in 9.16 (Sticky flag "y"...)
This commit is contained in:
Ilya Kantor 2020-12-13 20:08:35 +03:00 committed by GitHub
commit 16fda1bed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"';