Merge pull request #903 from HaydenLobry/patch-1

Type in 22-regexp-sticky/article.md
This commit is contained in:
Ilya Kantor 2019-04-14 09:22:11 +03:00 committed by GitHub
commit 6d0fe48c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ For instance, for a programming language variants can be like:
- Or an operator `pattern:[+-/*]`?
- (a syntax error if it's not anything in the expected list)
In Javascript, to perform a search starting from a given position, we can use `regexp.exec` with `regexp.lastIndex` property, but that's not we need!
In Javascript, to perform a search starting from a given position, we can use `regexp.exec` with `regexp.lastIndex` property, but that's not what we need!
We'd like to check the match exactly at given position, not "starting" from it.