Add tests for patterns

This commit is contained in:
Veronica Berglyd Olsen
2024-06-01 23:03:30 +02:00
parent 8fc97c263b
commit 92b7168363
3 changed files with 277 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class RegExPatterns:
symC += CONFIG.fmtDQuoteClose
rxEnd = "|$" if CONFIG.allowOpenDial else ""
rxRule = QRegularExpression(f"\\B[{symO}].*?[{symC}]\\B{rxEnd}")
rxRule = QRegularExpression(f"\\B[{symO}].*?(?:[{symC}]\\B{rxEnd})")
rxRule.setPatternOptions(QRegExUnicode)
return rxRule