jtc-utils
Version:
Utilities for Japanese Traditional Companies
16 lines • 364 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isHttpURL = isHttpURL;
function isHttpURL(value) {
if (!value) {
return false;
}
try {
const url = new URL(value);
return /^https?:$/.test(url.protocol);
}
catch (e) {
return false;
}
}
//# sourceMappingURL=isHttpURL.js.map