mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Remove useless trimStart
This commit is contained in:
parent
4f82703703
commit
479e9292d2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user