UNPKG

166 BJavaScriptView Raw
1var REMOTE_RESOURCE_PATTERN = /^(\w+:\/\/|\/\/)/;
2
3function isRemoteResource(uri) {
4 return REMOTE_RESOURCE_PATTERN.test(uri);
5}
6
7module.exports = isRemoteResource;