Skip to content

Commit

Permalink
fix: exclude other reserved characters
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 8, 2021
1 parent e50978c commit 027862d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sanitizeFileName.ts
@@ -1,6 +1,6 @@
// https://datatracker.ietf.org/doc/html/rfc2396
// eslint-disable-next-line no-control-regex
const INVALID_CHAR_RE = /[?*:\x00-\x1f\x7f<>#"{}|^[\]`]/g;
const INVALID_CHAR_RE = /[\x00-\x1F\x7F<>*#"{}|^[\]`;?:@&=+$,]/g;

export function sanitizeFileName(name: string): string {
const match = /^[a-z]:/i.exec(name);
Expand Down

0 comments on commit 027862d

Please sign in to comment.