decord/alpha/source/modules/core/UrlHostUtils.tsx

22 lines
526 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 2036
// Function ID: 2037
// Name: UrlHostUtils
2026-08-24 06:08:38 +00:00
// Dependencies: [2]
// Exports: getHostWithoutPort, isLocalhost
2026-10-09 10:00:15 +00:00
// Module 2036 (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) {
2026-10-03 08:58:59 +00:00
return "localhost" === arg0 || "127.0.0.1" === arg0;
2026-08-24 06:08:38 +00:00
}