Fix string check
This commit is contained in:
		
							parent
							
								
									a6572fb085
								
							
						
					
					
						commit
						4db64d4da6
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue