Fix semantics if is-empty filter
This commit is contained in:
parent
0a94160895
commit
89c34e74ef
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ impl Filter for FieldIsEmpty {
|
||||||
Some(Value::Boolean(_)) => false,
|
Some(Value::Boolean(_)) => false,
|
||||||
Some(Value::Float(_)) => false,
|
Some(Value::Float(_)) => false,
|
||||||
Some(Value::Integer(_)) => false,
|
Some(Value::Integer(_)) => false,
|
||||||
Some(Value::String(_)) => false,
|
Some(Value::String(s)) => s.is_empty(),
|
||||||
Some(Value::Table(t)) => t.is_empty(),
|
Some(Value::Table(t)) => t.is_empty(),
|
||||||
_ => true,
|
_ => true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue