is-remote-resource.js 166 B

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