kotlin is not dart
Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
This commit is contained in:
parent
b24b1a1884
commit
e980f6bb2f
|
@ -55,8 +55,8 @@ class EventMatchCondition(
|
|||
// match any substring of the value of the property which starts and ends at a
|
||||
// word boundary.
|
||||
return try {
|
||||
if (key == 'content.body') {
|
||||
val regex = Regex("(\\W|^)"+pattern.simpleGlobToRegExp() + "(\\W|$)", setOf(RegexOption.DOT_MATCHES_ALL, RegexOption.IGNORE_CASE))
|
||||
if (key == "content.body") {
|
||||
val regex = Regex("(\\W|^)" + pattern.simpleGlobToRegExp() + "(\\W|$)", setOf(RegexOption.DOT_MATCHES_ALL, RegexOption.IGNORE_CASE))
|
||||
regex.containsMatchIn(value)
|
||||
} else {
|
||||
val regex = Regex(pattern.simpleGlobToRegExp(), setOf(RegexOption.DOT_MATCHES_ALL, RegexOption.IGNORE_CASE))
|
||||
|
|
Loading…
Reference in New Issue