Commit 3f45d04f authored by di68kap's avatar di68kap

- DHParser: bugfix: Fehlermeldungen fehlten in History-Log

parent 6919c326
......@@ -1667,7 +1667,7 @@ def mandatory_violation(grammar: Grammar,
found = text_[:10].replace('\n', '\\n ') + '...'
for search, message in err_msgs:
rxs = not isinstance(search, str)
if rxs and text_.match(search) or (not rxs and text_.startswith(search)):
if (rxs and text_.match(search)) or (not rxs and text_.startswith(search)):
msg = message.format(expected, found)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment