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 300e326 commit 9778b34Copy full SHA for 9778b34
src/main/cljs/cljs/js.cljs
@@ -175,7 +175,10 @@
175
(.append sb
176
(str "\n//# sourceURL=" file
177
"\n//# sourceMappingURL=data:application/json;base64,"
178
- (base64/encodeString (string/replace json #"%([0-9A-F]{2})" (.fromCharCode js/String "0x$1")))))))
+ (-> (js/encodeURIComponent json)
179
+ (string/replace #"%([0-9A-F]{2})" (fn [[_ match]]
180
+ (.fromCharCode js/String (str "0x" match))))
181
+ (base64/encodeString))))))
182
183
(defn- current-alias-map
184
[]
0 commit comments