We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e4e67a5 + 15cc52c commit 807bfe1Copy full SHA for 807bfe1
src/moin/converters/highlight.py
@@ -1,4 +1,5 @@
1
# Copyright: 2008 MoinMoin:BastianBlank
2
+# Copyright: 2024 MoinMoin:UlrichB
3
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
4
5
"""
@@ -52,7 +53,8 @@ def recurse(self, elem):
52
53
elem[:] = new_childs
54
55
def __init__(self, regex):
- self.pattern = re.compile(regex)
56
+ """treat each word separately and ignore case sensitivity"""
57
+ self.pattern = re.compile(regex.replace(" ", "|"), re.IGNORECASE)
58
59
def __call__(self, tree):
60
self.recurse(tree)
0 commit comments