is-remote-resource.js 173 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 var REMOTE_RESOURCE_PATTERN = /^(\w+:\/\/|\/\/)/; function isRemoteResource(uri) { return REMOTE_RESOURCE_PATTERN.test(uri); } module.exports = isRemoteResource;