Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 2a85a5f

Browse files
committed
Merge branch 'master' of github.com:Suwings/MCSManager-Daemon
2 parents c9e2665 + ea6a37a commit 2a85a5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/service/system_file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default class FileManager {
182182
}
183183

184184
public static checkFileName(fileName: string) {
185-
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"', "'"];
185+
const blackKeys = ["/", "\\", "|", "?", "*", ">", "<", ";", '"'];
186186
for (const ch of blackKeys) {
187187
if (fileName.includes(ch)) return false;
188188
}

src/tools/filepath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

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

0 commit comments

Comments
 (0)