This commit is contained in:
BPplays
2024-12-30 03:01:04 -08:00
parent f67abf9e03
commit f27b3361e5
2 changed files with 7 additions and 7 deletions

View File

@@ -693,13 +693,13 @@ export function isValidUrl(url) {
}
export function urlHostnameToIPv6(hostname) {
if (hostname.startsWith("[")) {
if (hostname.startsWith('[')) {
hostname = hostname.slice(1);
}
if (hostname.endsWith("]")) {
if (hostname.endsWith(']')) {
hostname = hostname.slice(0, -1);
}
return hostname
return hostname;
}
export function stringToBool(str) {