no longer requires esnext

This commit is contained in:
stjet
2024-11-18 01:58:25 +00:00
parent a601972c5b
commit 8137852257
37 changed files with 75 additions and 75 deletions

View File

@@ -15,7 +15,7 @@ export function encode_domain_name(domain_name: string): string {
}
export function decode_domain_name(encoded_domain_name: string): string {
return (new TextDecoder()).decode(hex_to_uint8array(encoded_domain_name)).replaceAll("\u0000", "");
return (new TextDecoder()).decode(hex_to_uint8array(encoded_domain_name)).replace(/\u0000/g, "");
}
const BASE58_CHARS = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";