Skip to content

Commit

Permalink
safer file names when auto-filing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Mar 31, 2022
1 parent ed18e22 commit 67bf6eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/buffer_writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const entryArray = bibtexParse(rawBibtex) // eslint-disable-line no-undef
// autofile
const safeTitle = title
.slice(0, maxTitleFileNameLength)
.replace(/[:/\\]/g, "-")
.replace(/["'´]/g, "");
.replace(/[;:/\\]/g, "-")
.replace(/["'´,]/g, "");
const autoFileName = `${citekey}_${safeTitle}`;

// URL
Expand Down

0 comments on commit 67bf6eb

Please sign in to comment.