Commit 95fe7db9 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Fixed error in URI handling

parent 8f7b92e08a37
......@@ -30,7 +30,7 @@ export function uriEscape(uri: string): string {
let cc = uri.charCodeAt(i);
if (cc >= 0x100) {
let offset = cc >= 0xd800 && cc <= 0xdbff ? 1 : 0;
let cp = uri.codePointAt(i).toString();
let cp = uri.codePointAt(i).toString(16);
result += "\\u";
let leading = 4 + offset * 4 - cp.length;
while (leading > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment