COVESA / dlt-viewer

Diagnostic Log and Trace viewing program
Other
440 stars 244 forks source link

Filter with regular expression not working #99

Closed ZiadRhouma closed 4 years ago

ZiadRhouma commented 4 years ago

if I set a payload filter with regular expressions , then no messages are shown in the DLT viewer, even though the messages already exist.

DLT_Viewer_messages DLT_Viewer_regex DLT_Viewer_with_filter
alexmucde commented 4 years ago

We are using the QRegularExpression class from Qt libary. According to the Qt doumentation the regular expression feature CaretAtZero you want to use is not supported:

https://doc.qt.io/qt-5/qregularexpression.html#caret-modes

bazurbat commented 4 years ago

Hi! This is simply a bug, I've just made a PR (#102) which fixes the problem. Please check it out. It looks like it's doing what it is supposed to do with the caret for the logs which I have at least.

alexmucde commented 4 years ago

102 will solve this issue