Skip to content

Commit

Permalink
fix: basic-web: single-quotes were not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Oct 25, 2024
1 parent ba82fd4 commit ba08c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cross.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export async function promiseBestEffort<T>(promises: Promise<T>[]) {
}

export function pathEncode(s: string) {
return encodeURI(s).replace(/#/g, encodeURIComponent)
return encodeURI(s).replace(/#/g, escape)
}
//unused function pathDecode(s: string) { return decodeURI(s).replace(/%23/g, '#') }

Expand Down

0 comments on commit ba08c97

Please sign in to comment.