improved urlHostnameToIPv6

f67abf9e037b7dc3ccee90299f7fba2a94854135

BPplays <andymalbp@gmail.com>

1 files changed, +2 -2Showing whitespace changes
src/util.js+2 -2
@@ -693,10 +693,10 @@ export function isValidUrl(url) {
693693}
694694
695695export function urlHostnameToIPv6(hostname) {
696696 if (hostname.charAtstartsWith(0) === '"['")) {
697697 hostname = hostname.slice(1);
698698 }
699699 if (hostname.charAtendsWith(hostname.length - 1) === '"]'")) {
700700 hostname = hostname.slice(0, -1);
701701 }
702702 return hostname