We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2558d7 commit 5bc301aCopy full SHA for 5bc301a
1 file changed
src/main/ExtensionManager.ts
@@ -438,7 +438,7 @@ export default class ExtensionManager {
438
if (
439
!FILE_WHITE_LIST.includes(file.name) &&
440
(!FILE_EXTENSION_WHITE_LIST.includes(extname(file.name)) ||
441
- !/^\w+(?:\.\w+)*\.\w+/.test(file.name) ||
+ !/^[\w/]+(?:\.\w+)*\.\w+/.test(file.name) ||
442
file.name !== sanitizeFileName(file.name))
443
) {
444
throw new Error(`Filename "${file.name}" not allowed`);
0 commit comments