Add not predicate and docs to custom predicates

[no changelog]
This commit is contained in:
Linnea Gräf
2024-03-03 18:04:45 +01:00
parent 3bfec3033e
commit b025b06b6b
5 changed files with 166 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ interface StringMatcher {
}
if (jsonElement is JsonObject) {
val regex = jsonElement["regex"] as JsonPrimitive?
val text = jsonElement["text"] as JsonPrimitive?
val text = jsonElement["equals"] as JsonPrimitive?
val shouldStripColor = when (val color = (jsonElement["color"] as JsonPrimitive?)?.asString) {
"preserve" -> false
"strip", null -> true