1var NO_PROTOCOL_RESOURCE_PATTERN = /^\/\//; 2 3function hasProtocol(uri) { 4 return !NO_PROTOCOL_RESOURCE_PATTERN.test(uri); 5} 6 7module.exports = hasProtocol; 8
1var NO_PROTOCOL_RESOURCE_PATTERN = /^\/\//; 2 3function hasProtocol(uri) { 4 return !NO_PROTOCOL_RESOURCE_PATTERN.test(uri); 5} 6 7module.exports = hasProtocol; 8