Skip to content

Commit

Permalink
style: remove unnecessary escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
bconnorwhite committed Apr 7, 2021
1 parent a683457 commit e0c32a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Matches `.`, `-`, or `_`
*/
const punctuationRegex = /[\.\-\_]/g;
const punctuationRegex = /[.\-_]/g;

export function transform(name: string) {
return name.replace(punctuationRegex, "").toLowerCase();
Expand Down

0 comments on commit e0c32a6

Please sign in to comment.