@stryke/path
Version:
A package containing various utilities that expand the functionality of NodeJs's built-in `path` module
10 lines (9 loc) • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UNC_REGEX = exports.DRIVE_LETTER_START_REGEX = exports.DRIVE_LETTER_REGEX = exports.ABSOLUTE_PATH_REGEX = void 0;
const DRIVE_LETTER_START_REGEX = exports.DRIVE_LETTER_START_REGEX = /^[A-Z]:\//i,
DRIVE_LETTER_REGEX = exports.DRIVE_LETTER_REGEX = /^[A-Z]:$/i,
UNC_REGEX = exports.UNC_REGEX = /^[/\\]{2}/,
ABSOLUTE_PATH_REGEX = exports.ABSOLUTE_PATH_REGEX = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i;