Fix string check

This commit is contained in:
blankie 2023-03-07 18:02:57 +07:00
parent a6572fb085
commit 4db64d4da6
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 2 deletions

View File

@ -136,9 +136,9 @@ bool StringFilter::_match_regex(const LogcatEntry& entry) const {
matched = this->_regex->match(str ? str->data() : "", 1, pmatch, eflags);
if (this->exact_match) {
matched = matched && pmatch[0].rm_so == 0 && str
matched = matched && pmatch[0].rm_so == 0 && (str
? static_cast<size_t>(pmatch[0].rm_eo) == str->size()
: pmatch[0].rm_so == 0;
: pmatch[0].rm_eo == 0);
}
return matched;
}