]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/blog.py
blog/wiki: Only create Bugzilla links for numbers of 5 or more digits
[ipfire.org.git] / src / backend / blog.py
index f87c71c8d02177667c9a0095f7df2b4fa6b8bb55..094a565ffbfac2bb65786127195cbd9598feb3f1 100644 (file)
@@ -366,7 +366,7 @@ class PrettyLinksExtension(markdown.extensions.Extension):
 
 
 class BugzillaLinksPreprocessor(markdown.preprocessors.Preprocessor):
-       regex = re.compile(r"(?:#(\d+))", re.I)
+       regex = re.compile(r"(?:#(\d{5,}))", re.I)
 
        def run(self, lines):
                for line in lines: