We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bfc376 commit bd6b320Copy full SHA for bd6b320
lib/manager/util/validation.js
@@ -6,5 +6,6 @@
6
* An empty or null/undefined filename is also considered valid.
7
*/
8
export function isValidFilename (filename: ?string): boolean {
9
- return !filename || (/^[^<>:"/\\|?* ]*$/.test(filename) && !/\.zip$/i.test(filename))
+ // Ensure only valid characters (no ., <>,:"/\\|?*, or space) are used
10
+ return !filename || /^[^<>:"/\\|?* .]*$/.test(filename)
11
}
0 commit comments