feige
2023-12-12 d855e84e98c066c5f21bd294a1d1d919c9383595
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;