Commits

Mike Bayer  committed b3738a6

tweak

  • Participants
  • Parent commits e5f9e31

Comments (0)

Files changed (1)

                 tickets = set()
                 def tag(m):
                     tag_content = m.group(1)
-                    t_r = re.match(r'ticket:(\d+)', tag_content)
+                    t_r = re.match(r'(?:ticket:|#)(\d+)', tag_content)
                     if t_r:
                         tickets.add(t_r.group(1))
                     else:
 
                 content = re.sub(r'(?:^|\s)\[(.+?)\]', tag, content)
 
+                content = re.sub(r'\s(#\d+)', tag, content)
+
                 yield {
                     'version': current_version,
                     'tags': ", ".join(current_tags.union(in_content_tags)),