feige
2023-12-11 bd4b9aa6ab74a8aa6f55265d24b4a4249abcb636
1
2
3
4
5
6
7
var NO_PROTOCOL_RESOURCE_PATTERN = /^\/\//;
 
function hasProtocol(uri) {
  return !NO_PROTOCOL_RESOURCE_PATTERN.test(uri);
}
 
module.exports = hasProtocol;