Type in 22-regexp-sticky/article.md

minor typo :)
This commit is contained in:
HaydenLobry 2019-04-11 10:00:46 +10:00 committed by GitHub
parent c4b2a2fc34
commit 7b6b40e037
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:[+-/*]`? - Or an operator `pattern:[+-/*]`?
- (a syntax error if it's not anything in the expected list) - (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. We'd like to check the match exactly at given position, not "starting" from it.