forked from enviPath/enviPy
Current Dev State
This commit is contained in:
11
static/js/ketcher2/node_modules/is-relative/index.js
generated
vendored
Normal file
11
static/js/ketcher2/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);
|
||||
};
|
||||
Reference in New Issue
Block a user