--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
11
node_modules/is-relative/index.js
generated
vendored
Normal file
11
node_modules/is-relative/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
var isUncPath = require('is-unc-path');
|
||||
|
||||
module.exports = function isRelative(fp) {
|
||||
if (typeof fp !== 'string') {
|
||||
throw new TypeError('isRelative expects a string.');
|
||||
}
|
||||
// Windows UNC paths are always considered to be absolute.
|
||||
return !isUncPath(fp) && !/^([a-z]:)?[\\\/]/i.test(fp);
|
||||
};
|
||||
Loading…
Reference in a new issue