Commits

Oben Sonne committed ad6a0fb

Adjust filename regex

Comments (0)

Files changed (1)

         
         basename = os.path.basename(fname)
         
-        fpatt = r'(\w+)(?:\.([0-9]+-[0-9]+-[0-9]+))?(?:\.(.*))?%s' % MKD_PATT
+        fpatt = r'([\w-]+)(?:\.([0-9]+-[0-9]+-[0-9]+))?(?:\.(.*))?%s' % MKD_PATT
         title, date, post, ext = re.match(fpatt, basename).groups()
         title = title.replace("_", " ")
         post = post and post.replace("_", " ") or None