decord/source/modules/core/UrlHostUtils.tsx

26 lines
574 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4415
// Function ID: 4416
2026-08-24 06:08:38 +00:00
// Name: getHostWithoutPort
// Dependencies: [2]
// Exports: getHostWithoutPort, isLocalhost
2026-08-25 06:04:03 +00:00
// Module 4415 (getHostWithoutPort)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
const result = set.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;
}