igir
Version:
🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.
21 lines (20 loc) • 398 B
JavaScript
var urlUtil_default = {
/**
* Added in: v19.9.0
*/
canParse(input, base) {
if (!base && !input.includes("://")) {
return false;
}
try {
const url = new URL(input, base);
return process.platform !== "win32" || url.protocol.length > 2;
} catch {
return false;
}
}
};
export {
urlUtil_default as default
};
//# sourceMappingURL=urlUtil.js.map