Skip to content

Move regexp to outer scope#87

Merged
sindresorhus merged 2 commits into
sindresorhus:mainfrom
nam-hle:move-regexp
Nov 15, 2021
Merged

Move regexp to outer scope#87
sindresorhus merged 2 commits into
sindresorhus:mainfrom
nam-hle:move-regexp

Conversation

@nam-hle
Copy link
Copy Markdown
Contributor

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

My attempt to fix #86.

Comment thread index.js Outdated
@sindresorhus
Copy link
Copy Markdown
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

3 participants