Allow filtering out with regex in logs table
parent
c36f610c85
commit
924383f586
|
@ -132,7 +132,7 @@ class LogsFilter extends PureComponent<Props, State> {
|
|||
}
|
||||
|
||||
let state = {}
|
||||
if (['!=', '==', '=~'].includes(operator) && value !== '') {
|
||||
if (['!=', '==', '=~', '!~'].includes(operator) && value !== '') {
|
||||
this.props.onChangeFilter(id, operator, value)
|
||||
} else {
|
||||
state = {operator: filter.operator, value: filter.value}
|
||||
|
|
|
@ -98,7 +98,7 @@ const operatorMapping = (operator: string): string => {
|
|||
}
|
||||
|
||||
const valueMapping = (operator: string, value): string => {
|
||||
if (operator === '=~') {
|
||||
if (operator === '=~' || operator === '!~') {
|
||||
return `${new RegExp(value)}`
|
||||
} else {
|
||||
return `'${value}'`
|
||||
|
|
Loading…
Reference in New Issue