Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use -1 instead of 0 as lastIndex indicator #7

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Sep 5, 2022

this is a follow up to #2

I thought about it. Probably somebody is crazy enough to use %00 in his/her query and then it would stop parsing to early.

Performance seems to be still the same.

@anonrig
Copy link
Owner

anonrig commented Sep 5, 2022

I see where this is coming. Looks good. Thanks!

@anonrig anonrig merged commit 19c3f52 into anonrig:main Sep 5, 2022
@Uzlopak Uzlopak deleted the minus1terminator branch September 5, 2022 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants