Commits

anatoly techtonik committed 8c23c43

refresh.py: linkinfy revisions regardless of line position

  • Participants
  • Parent commits f9cbac5

Comments (0)

Files changed (1)

     import re
 
     # linkify revisions
-    revision = re.compile(r'^(\d{3,4}:[0-9a-f]{12}) -', re.M)
+    revision = re.compile(r'(\d{3,4}:[0-9a-f]{12}) -', re.M)
     anchors = revision.findall(history) # ['695:ba3f47e4a614', ...]
     history = revision.sub(r'`\1`_ -', history)
     history += "\n"