Commit 479e9292 authored by Him188's avatar Him188

Remove useless trimStart

parent 4f827037
......@@ -225,7 +225,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>(
): Listener<T> {
return if (trim) {
val toCheck = sub.trim()
content({ it.trimStart().contains(toCheck, ignoreCase = ignoreCase) }, {
content({ it.contains(toCheck, ignoreCase = ignoreCase) }, {
onEvent(this, this.message.toString().trim())
})
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment