Commits

Oben Sonne  committed 80b9e48

Allow periods in page title when using file name

  • Participants
  • Parent commits fa9d285

Comments (0)

Files changed (1)

         
         basename = os.path.basename(fname)
         
-        fpatt = r'([\w-]+)(?:\.([0-9]+-[0-9]+-[0-9]+))?(?:\.(.*))?%s' % MKD_PATT
+        fpatt = r'(.+?)(?:\.([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