is-remote-resource.js 166B

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