From 330086e87c1f2eb074d8e92d8d3d5f7f6b372358 Mon Sep 17 00:00:00 2001 From: bob1520 <80553357+hockerschwan@users.noreply.github.com> Date: Wed, 15 Jun 2022 22:41:38 +0000 Subject: [PATCH] add ? and * (#2319) --- 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 a0884a85..a8bdb99e 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) {