source:
frontend/node_modules/clean-css/lib/utils/is-remote-resource.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 244 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | var REMOTE_RESOURCE_PATTERN = /^(\w+:\/\/|\/\/)/; |
| 2 | var FILE_RESOURCE_PATTERN = /^file:\/\//; | |
| 3 | ||
| 4 | function isRemoteResource(uri) { | |
| 5 | return REMOTE_RESOURCE_PATTERN.test(uri) && !FILE_RESOURCE_PATTERN.test(uri); | |
| 6 | } | |
| 7 | ||
| 8 | module.exports = isRemoteResource; |
Note:
See TracBrowser
for help on using the repository browser.
