The Google Code issue IDs do not match the ones on GitHub post-export (since
pull requests share an ID namespace). Issue text should be rewritten to
correctly mention the GitHub issue IDs, instead of the old GitHub ones.
Regular expression to detect issue references.
Used to auto-link to other issues when displaying issue details.
Matches "issue " when "issue" is not part of a larger word, or
"issue #", or just a "#" when it is preceeded by a space.
Regular expression to detect issue references.
Used to auto-link to other issues when displaying issue details.
Matches "issue " when "issue" is not part of a larger word, or
"issue #", or just a "#" when it is preceeded by a space.
ISSUE_REF_RE = re.compile(r""" (?P\b(issue|bug)\s*)
(?P\s+[-a-z0-9]+[:#])?
(?P#?)
(?P\d+)\b""", re.IGNORECASE | re.MULTILINE | re.VERBOSE)
Original issue reported on code.google.com by
chrsm...@google.com
on 4 Jun 2015 at 3:47