We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c605b commit 6662d68Copy full SHA for 6662d68
main.ts
@@ -1,4 +1,4 @@
1
-import { decompressFromBase64 } from "lz-string"
+import { decompressFromEncodedURIComponent } from "lz-string"
2
3
// Expected invocation is `node path/to/index.js $url`.
4
if (process.argv.length !== 3) {
@@ -8,7 +8,7 @@ if (process.argv.length !== 3) {
8
}
9
10
const url = process.argv[2]
11
-const code = decompressFromBase64(new URL(url).hash.replace(/^#code\//, ""))
+const code = decompressFromEncodedURIComponent(new URL(url).hash.replace(/^#code\//, ""))
12
13
if (typeof code !== "string") {
14
throw new Error(
0 commit comments