const PROTOCOL = /^([a-z][a-z\d+\-.]*:)?\/\//i; function isAbsoluteURL(value) { return PROTOCOL.test(value); } export { isAbsoluteURL };