Skip to content

Commit

Permalink
use full-width symbols to replace invalid file name character
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Nov 9, 2024
1 parent 192cdd9 commit 21dadb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mv package.json package.json.tmp
mv deno.json deno.json.tmp
mv deno.lock deno.lock.tmp
deno install --vendor --quiet "npm:[email protected].39"
deno install --vendor --quiet "npm:[email protected].40"
mv package.json.tmp package.json
mv deno.json.tmp deno.json
mv deno.lock.tmp deno.lock
Expand Down
3 changes: 2 additions & 1 deletion single-file-cli-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ const DEFAULT_OPTIONS = {
filenameTemplate: "{page-title} ({date-locale} {time-locale}).html",
filenameMaxLength: 192,
filenameMaxLengthUnit: "bytes",
filenameReplacedCharacters: ["~", "+", "\\\\", "?", "%", "*", ":", "|", "\"", "<", ">", "\x00-\x1f", "\x7F"],
filenameReplacedCharacters: ["~", "+", "?", "%", "*", ":", "|", "\"", "<", ">", "\\\\", "\x00-\x1f", "\x7F"],
filenameReplacementCharacter: "_",
filenameReplacementCharacters: ["~", "+", "?", "%", "*", ":", "|", """, "<", ">", "\"],
maxResourceSize: 10,
backgroundSave: true,
removeAlternativeFonts: true,
Expand Down

0 comments on commit 21dadb1

Please sign in to comment.