diff --git a/src/wiktextract/clean.py b/src/wiktextract/clean.py index 1556eec0..8b1e9fec 100644 --- a/src/wiktextract/clean.py +++ b/src/wiktextract/clean.py @@ -1376,11 +1376,11 @@ def repl_1_syntaxhighlight(m): # Remove with previewonly class (generated e.g. by {{taxlink|...}}) title = re.sub(r'(?si)]*?\bclass="[^"<>]*?' r'\bpreviewonly\b[^>]*?>' - r'((<[^<>]>[^<>]*[^<>]*>)|.)*?', + r'.+?', "", title) # Remove ... title = re.sub(r'(?si)]*?\bclass="[^"]*?\berror\b[^>]*?>' - r'((<.*?]>)|.)*?', + r'.+?', "", title) # Change