We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f19dda commit eac1e29Copy full SHA for eac1e29
1 file changed
python2.7/music-organizer.py
@@ -64,8 +64,8 @@ def toNeat(s):
64
s = re.sub("^-*", "", s)
65
s = re.sub("-*$", "", s)
66
67
- # Ensure the string is only alphanumeric with dashes.
68
- search = re.search("[^0-9a-z\-]", s)
+ # Ensure the string is only alphanumeric with '-' and '+'.
+ search = re.search("[^0-9a-z\-\+]", s)
69
if search:
70
print("Error: Unrecognized character in '" + s + "'")
71
sys.exit(-42)
0 commit comments