Add negative test for globs on body only matching full words
Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
This commit is contained in:
parent
48fc634825
commit
b24b1a1884
|
@ -106,6 +106,7 @@ class PushRulesConditionTest : MatrixTest {
|
|||
val condition = EventMatchCondition("content.body", "cake*lie", false)
|
||||
|
||||
assert(condition.isSatisfied(createSimpleTextEvent("How was the cakeisalie?")))
|
||||
assertFalse(condition.isSatisfied(createSimpleTextEvent("How was the notcakeisalie?")))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue