2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 2014
|
|
|
|
|
// Function ID: 2015
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: UrlHostUtils
|
|
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: getHostWithoutPort, isLocalhost
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 2014 (UrlHostUtils)
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/core/UrlHostUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export const getHostWithoutPort = function getHostWithoutPort(arg0) {
|
|
|
|
|
let first;
|
|
|
|
|
if (arg0 != null) {
|
|
|
|
|
first = arg0.split(":")[0];
|
|
|
|
|
}
|
|
|
|
|
return first;
|
|
|
|
|
};
|
|
|
|
|
export function isLocalhost(arg0) {
|
|
|
|
|
let tmp = "localhost" === arg0;
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = "127.0.0.1" === arg0;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|