Skip to content

Commit

Permalink
fix: use replace with regex for older node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed May 7, 2021
1 parent e84e907 commit 8e86de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/parse-url.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function parseURL(rawURL: string) {
return new URL(rawURL.replaceAll('#', '%23'), 'file://')
return new URL(rawURL.replace(/#/g, '%23'), 'file://')
}

export function extractEntries(url: URL) {
Expand Down

0 comments on commit 8e86de1

Please sign in to comment.