]> Shamusworld >> Repos - ardour-manual-diverged/commitdiff
Minor fixes to the filename regex.
authorShamus Hammons <jlhamm@acm.org>
Thu, 2 Feb 2017 14:15:53 +0000 (08:15 -0600)
committerShamus Hammons <jlhamm@acm.org>
Thu, 2 Feb 2017 14:15:53 +0000 (08:15 -0600)
build.py

index 437ccf40d608fe9d7e250157cdd2995d8ef70cae..c7b5c53a91e0cf5f932a1f032bf3963e3f7d5475 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -24,7 +24,7 @@ import argparse
 #
 def MakeFilename(s):
        # Cleans up the file name, removing all non ASCII or .-_ chars
-       fn = re.sub(r'[^.-_a-zA-Z0-9]', '', s)
+       fn = re.sub(r'[^.\-_a-zA-Z0-9 ]', '', s)
        fn = fn.lower()
        fn = fn.replace(' ', '-')
        return fn