Leave dashes in place

This commit is contained in:
2018-09-02 15:55:43 +02:00
committed by Kristóf Tóth
parent fe1c4b27ba
commit 71f41a62fd
+3 -1
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(' ', '_'))