mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Remove useless trimStart
This commit is contained in:
parent
4f82703703
commit
479e9292d2
@ -225,7 +225,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>(
|
|||||||
): Listener<T> {
|
): Listener<T> {
|
||||||
return if (trim) {
|
return if (trim) {
|
||||||
val toCheck = sub.trim()
|
val toCheck = sub.trim()
|
||||||
content({ it.trimStart().contains(toCheck, ignoreCase = ignoreCase) }, {
|
content({ it.contains(toCheck, ignoreCase = ignoreCase) }, {
|
||||||
onEvent(this, this.message.toString().trim())
|
onEvent(this, this.message.toString().trim())
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user