Skip to content

Commit d5d3345

Browse files
committed
fix: remove trailing = signs from hash urls
1 parent a89ea32 commit d5d3345

File tree

1 file changed

+1
-1
lines changed
  • apps/svelte.dev/src/routes/(authed)/playground/[id]

1 file changed

+1
-1
lines changed

apps/svelte.dev/src/routes/(authed)/playground/[id]/gzip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function compress_and_encode_text(input) {
66
const { done, value } = await reader.read();
77
if (done) {
88
reader.releaseLock();
9-
return btoa(buffer).replaceAll('+', '-').replaceAll('/', '_');
9+
return btoa(buffer).replaceAll('+', '-').replaceAll('/', '_').replace(/=+$/, '');
1010
} else {
1111
for (let i = 0; i < value.length; i++) {
1212
// decoding as utf-8 will make btoa reject the string

0 commit comments

Comments
 (0)