Skip to content

Commit

Permalink
fix: remove path separator from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 2, 2021
1 parent 8ba7c25 commit e50978c
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 e50978c

Please sign in to comment.