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

Move regexp to outer scope #87

Merged
merged 2 commits into from Nov 15, 2021
Merged

Conversation

nam-hle
Copy link
Contributor

@nam-hle nam-hle commented Nov 14, 2021

My attempt to fix #86.

index.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

You need to reset lastIndex for the g regex. See: https://github.com/sindresorhus/camelcase/pull/85/files

@sindresorhus sindresorhus merged commit 651ba7d into sindresorhus:main Nov 15, 2021
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.

Move regexes to the outer scope
2 participants