We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e4c568 commit 1027816Copy full SHA for 1027816
1 file changed
python2.7/music-organizer.py
@@ -7,9 +7,7 @@
7
8
emptyChars = re.compile(r"[(),.'\\\?]")
9
def toNeat(s):
10
- s = s.lower()
11
- s = s.replace(" ", "-")
12
- s = s.replace("&", "and")
+ s = s.lower().replace(" ", "-").replace("&", "and")
13
s = emptyChars.sub("", s)
14
search = re.search("[^0-9a-z\-]", s)
15
if search:
0 commit comments