Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
regex = re.compile('(bug)\s+#?(\d+)', re.IGNORECASE)
content = regex.sub(
jinja2.Markup('<a href="https://bugzilla.mozilla.org/'
'show_bug.cgi?id=\\2" '
'target="_blank">\\1 \\2</a>'),
content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.