Leave dashes in place

This commit is contained in:
Kjistóf 2016-12-11 10:18:19 +01:00 committed by Kristóf Tóth
parent fe1c4b27ba
commit 71f41a62fd
1 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,8 @@ for file in argv[1:]:
''.join(ch for ch in file
if ch.isalnum()
or ch is ' '
or ch is '.')
or ch is '.'
or ch is '-') # dashes are ok
)
.replace(' ', '_'))
.replace(' ', '_'))