Skip to content

Commit

Permalink
Merge pull request #413 from itofzo/change_trailing_sanitizeFileName_dev
Browse files Browse the repository at this point in the history
Change trailing sanitizeFileName
  • Loading branch information
midgetspy committed Jun 14, 2012
2 parents 28be46a + 2c0f29f commit 5c1494d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sickbeard/helpers.py
Expand Up @@ -114,8 +114,8 @@ def sanitizeFileName (name):
name = re.sub(r'[\\/\*]', '-', name)
name = re.sub(r'[:"<>|?]', '', name)

# remove leading/trailing periods
name = re.sub(r'(^\.+|\.+$)', '', name)
# remove leading/trailing periods and spaces
name = name.strip(' .')

return name

Expand Down

0 comments on commit 5c1494d

Please sign in to comment.