We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e8b75b commit cbbbf69Copy full SHA for cbbbf69
logprep/filter/expression/filter_expression.py
@@ -340,7 +340,9 @@ def _normalize_regex(regex: str) -> str:
340
end_token = "$"
341
match = RegExFilterExpression.match_parts_pattern.match(regex)
342
if match is None: # pragma: no cover
343
- raise FilterExpressionError("regex is designed to always match")
+ raise FilterExpressionError(
344
+ f"Internal error: regex is designed to always match: '{regex!r}'"
345
+ )
346
flag, _, pattern = match.groups()
347
flag = "" if flag is None else flag
348
pattern = "" if pattern is None else pattern
0 commit comments