Skip to content

Commit 383e164

Browse files
authored
fix(createNormalizedUrl): replace String.fromCharCode by String.fromCodePoint
#2905
1 parent 404a7cb commit 383e164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/html.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function createNormalizedUrl(url: string) {
7272
codePoints[i] = Chars.UNDERSCORE;
7373
}
7474

75-
return String.fromCharCode(...codePoints);
75+
return String.fromCodePoint(...codePoints);
7676
}
7777

7878
const enum Chars {

0 commit comments

Comments
 (0)