Ignore separator at end of string. Fixes #3823

This commit is contained in:
Clinton Hall
2014-08-22 11:58:29 +09:30
parent 3546f29caf
commit c0492a41d9

View File

@@ -847,7 +847,7 @@ Remove it if you want it to be renamed (again, or at least let it try again)
replaces = [
('\.+', '.'), ('_+', '_'), ('-+', '-'), ('\s+', ' '), (' \\\\', '\\\\'), (' /', '/'),
('(\s\.)+', '.'), ('(-\.)+', '.'), ('(\s-)+', '-'),
('(\s\.)+', '.'), ('(-\.)+', '.'), ('(\s-)+', '-'), ('([\s\.\,\_\-\/\\]$)', ''),
]
for r in replaces: