forked from mirror/MCSM-Daemon
Merge branch 'master' of github.com:Suwings/MCSManager-Daemon
This commit is contained in:
commit
2a85a5f542
@ -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;
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
export function checkFileName(fileName: string) {
|
||||
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"', "'"];
|
||||
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"'];
|
||||
for (const ch of blackKeys) {
|
||||
if (fileName.includes(ch)) return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user