Skip to content

Commit

Permalink
fix: for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jan 3, 2024
1 parent 646582a commit cb55918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function splitAndPrefix(
}
}

if (keep) {
if (keep && foundPrefix) {
foundPrefix = foundPrefix.replace(new RegExp(`[^${keep.join('')}]`, 'g'), '')
}

Expand Down

0 comments on commit cb55918

Please sign in to comment.