Merge pull request #3836 from clinton-hall/patch-1

Ignore separator at end of string. Fixes #3823
This commit is contained in:
Ruud Burger
2014-08-27 19:41:37 +02:00

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: