Skip to content

Commit 3df2859

Browse files
authored
Added more chars to the replace list (#8)
Some chars that are illegal for windows file names were allowed, this should replace them all with underscores.
1 parent c2247f6 commit 3df2859

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/download.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ impl<'a> Downloader<'a> {
170170
|| c == '\\'
171171
|| c == ':'
172172
|| c == '='
173+
|| c == '?'
174+
|| c == '"'
175+
|| c == '<'
176+
|| c == '>'
177+
|| c == '|'
178+
|| c == '*'
173179
{
174180
'_'
175181
} else {

0 commit comments

Comments
 (0)