From 02ccf86bda93b8b3fcb4df050bc19f5dd732f249 Mon Sep 17 00:00:00 2001 From: bob1520 <80553357+hockerschwan@users.noreply.github.com> Date: Tue, 14 Jun 2022 08:12:10 +0900 Subject: [PATCH] add ? and * --- src/renderer/store/modules/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index a0884a858de3..a8bdb99e267b 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -326,7 +326,7 @@ const actions = { if (platform === 'win32') { // https://www.boost.org/doc/libs/1_78_0/libs/filesystem/doc/portability_guide.htm // https://stackoverflow.com/questions/1976007/ - const noForbiddenChars = ['<', '>', ':', '"', '/', '|'].every(char => { + const noForbiddenChars = ['<', '>', ':', '"', '/', '|', '?', '*'].every(char => { return parsedString.indexOf(char) === -1 }) if (!noForbiddenChars) {