Skip to content

Commit

Permalink
Treat ~ as a normal character in paths
Browse files Browse the repository at this point in the history
(#51)
  • Loading branch information
gyng committed Jan 26, 2018
1 parent d9d8f73 commit b33d1b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Fix save-to-click toggle key not deactivating after switching tabs
* Add more fields to Freedesktop shortcuts (#54)
* Treat `~` as a normal character in paths (#51)
* Refactor options management backend

# 2.3.0
Expand Down
2 changes: 1 addition & 1 deletion src/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const DISPOSITION_FILENAME_REGEX = /filename[^;=\n]*=((['"])(.*)?\2|(.+'')?([^;\n]*))/i;
const EXTENSION_REGEX = /\.([0-9a-z]{1,8})$/i;
const SPECIAL_CHARACTERS_REGEX = /[~<>:"/\\|?*\0]/g;
const SPECIAL_CHARACTERS_REGEX = /[<>:"/\\|?*\0]/g;
const BAD_LEADING_CHARACTERS = /^[./\\]/g;
const SEPARATOR_REGEX = /[/\\]/g;

Expand Down

0 comments on commit b33d1b0

Please sign in to comment.