Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jan 5, 2022
1 parent a076773 commit bb57363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function splitAndPrefix(string, options) {
}
}
if (keep) {
foundPrefix = foundPrefix.replaceAll(new RegExp(`[^${keep.join('')}]`, 'g'), '');
foundPrefix = foundPrefix.replace(new RegExp(`[^${keep.join('')}]`, 'g'), '');
}
// the first word doesn't need a prefix, so only return the found prefix
if (i === 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
}
if (keep) {
foundPrefix = foundPrefix.replaceAll(new RegExp(`[^${keep.join('')}]`, 'g'), '');
foundPrefix = foundPrefix.replace(new RegExp(`[^${keep.join('')}]`, 'g'), '');
}
// the first word doesn't need a prefix, so only return the found prefix
if (i === 0) {
Expand Down

0 comments on commit bb57363

Please sign in to comment.