Skip to content

Commit eac1e29

Browse files
committed
Allow '+' in song names.
1 parent 0f19dda commit eac1e29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python2.7/music-organizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def toNeat(s):
6464
s = re.sub("^-*", "", s)
6565
s = re.sub("-*$", "", s)
6666

67-
# Ensure the string is only alphanumeric with dashes.
68-
search = re.search("[^0-9a-z\-]", s)
67+
# Ensure the string is only alphanumeric with '-' and '+'.
68+
search = re.search("[^0-9a-z\-\+]", s)
6969
if search:
7070
print("Error: Unrecognized character in '" + s + "'")
7171
sys.exit(-42)

0 commit comments

Comments
 (0)