Merge branch 'master' of github.com:Suwings/MCSManager-Daemon

This commit is contained in:
Suwings 2022-04-29 19:39:36 +08:00
commit 2a85a5f542
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ export default class FileManager {
}
public static checkFileName(fileName: string) {
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"', "'"];
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"'];
for (const ch of blackKeys) {
if (fileName.includes(ch)) return false;
}

View File

@ -20,7 +20,7 @@
*/
export function checkFileName(fileName: string) {
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"', "'"];
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"'];
for (const ch of blackKeys) {
if (fileName.includes(ch)) return false;
}