Fix semantics if is-empty filter

This commit is contained in:
Matthias Beyer 2016-03-13 20:23:47 +01:00
parent 0a94160895
commit 89c34e74ef

View file

@ -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,
} }