Skip to content

Commit

Permalink
Improve performance
Browse files Browse the repository at this point in the history
Thanks to @ready-research for the tip.
  • Loading branch information
sindresorhus committed Sep 29, 2021
1 parent ac12230 commit 696d530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = (
// `my_URLstring` → `my_url_string`
return decamelized
.replace(
/(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,
/(\p{Uppercase_Letter})(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu,
replacement
)
.toLowerCase();
Expand Down

0 comments on commit 696d530

Please sign in to comment.