Skip to content

Commit 96f297d

Browse files
committed
prevent slashs in tex file names
1 parent 8d59a00 commit 96f297d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
// there are many characters that give tex trouble in filenames, create
99
// a target stem that replaces them with the '-' character
1010
export function texSafeFilename(file: string) {
11-
return file.replaceAll(/[ <>()|\:&;#?*']/g, "-");
11+
return file.replaceAll(/[ <>()|\:&;#?*'\\\/]/g, "-");
1212
}

0 commit comments

Comments
 (0)