"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fileUtils = void 0; class FileUtils { constructor() { this.filenameReservedRegex = (/[<>:"\/\\|?*\x00-\x1F]/g); this.filenameReservedRegexWindows = (/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i); } isValidFileName(fileName) { if (!fileName || fileName.length > 255) { return false; } if (this.filenameReservedRegex.test(fileName) || this.filenameReservedRegexWindows.test(fileName)) { return false; } if (/^\.\.?$/.test(fileName)) { return false; } return true; } } exports.fileUtils = new FileUtils();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archive.d.ts | File | 44 B | 0644 |
|
archive.js | File | 146 B | 0644 |
|
color.d.ts | File | 572 B | 0644 |
|
color.js | File | 5.18 KB | 0644 |
|
emoji.d.ts | File | 68 B | 0644 |
|
emoji.js | File | 310 B | 0644 |
|
file.d.ts | File | 204 B | 0644 |
|
file.js | File | 708 B | 0644 |
|
http.d.ts | File | 810 B | 0644 |
|
http.js | File | 3.33 KB | 0644 |
|
logger.d.ts | File | 707 B | 0644 |
|
logger.js | File | 1.64 KB | 0644 |
|
npm.d.ts | File | 991 B | 0644 |
|
npm.js | File | 4.86 KB | 0644 |
|
uuid.d.ts | File | 91 B | 0644 |
|
uuid.js | File | 490 B | 0644 |
|