Files
NapCatQQ/.pnpm-store/v3/files/00/dee98e8fbc37651207c83fa47cc3f4f21ee086a6f36f432a1cf363f3c24d14d95663a163db2be0cbf9b44163ebe955a9d07da5f22cc126b42e75bf71f2d89b
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

13 lines
343 B
Plaintext

'use strict';
var isUncPath = require('is-unc-path');
module.exports = function isRelative(filepath) {
if (typeof filepath !== 'string') {
throw new TypeError('expected filepath to be a string');
}
// Windows UNC paths are always considered to be absolute.
return !isUncPath(filepath) && !/^([a-z]:)?[\\\/]/i.test(filepath);
};