Skip to content

Commit 421b2d7

Browse files
committed
Allow 0-9 in song names.
1 parent e1682a1 commit 421b2d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python2.7/music-organizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
def toNeat(s):
1818
s = s.lower()
1919
for r in replaceChars: s = s.replace(r[0], r[1])
20-
search = re.search("[^a-z\-]", s)
20+
search = re.search("[^0-9a-z\-]", s)
2121
if search:
2222
print("Error: Unrecognized character in '" + s + "'")
2323
sys.exit(-42)

0 commit comments

Comments
 (0)