decord/source/modules/core/UrlHostUtils.tsx

26 lines
569 B
TypeScript
Raw Normal View History

// Module ID: 1930
// Function ID: 1931
// Name: UrlHostUtils
2026-08-24 06:08:38 +00:00
// Dependencies: [2]
// Exports: getHostWithoutPort, isLocalhost
// Module 1930 (UrlHostUtils)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/core/UrlHostUtils.tsx");
2026-08-24 06:08:38 +00:00
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;
}