Skip to content

Commit 533ad49

Browse files
authored
Update apps/svelte.dev/src/routes/(authed)/playground/[id]/gzip.js
1 parent a807428 commit 533ad49

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export async function compress_and_encode_text(input) {
66
const { done, value } = await reader.read();
77
if (done) {
88
reader.releaseLock();
9+
// Some sites like discord don't like it when links end with =
910
return btoa(buffer).replaceAll('+', '-').replaceAll('/', '_').replace(/=+$/, '');
1011
} else {
1112
for (let i = 0; i < value.length; i++) {

0 commit comments

Comments
 (0)