aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorZickles <76439587+Zickles@users.noreply.github.com>2024-03-21 15:11:36 -0400
committerGitHub <noreply@github.com>2024-03-21 20:11:36 +0100
commit1d61933a29785f873a04a93f6c32e9570e13dfc6 (patch)
tree06ba68e24264b0a5176f9c3ecee65b9dd9aeb558 /src/main/java/at/hannibal2/skyhanni/utils
parent183330cffcced59da0bc3f317706b2d054b4ca44 (diff)
downloadskyhanni-1d61933a29785f873a04a93f6c32e9570e13dfc6.tar.gz
skyhanni-1d61933a29785f873a04a93f6c32e9570e13dfc6.tar.bz2
skyhanni-1d61933a29785f873a04a93f6c32e9570e13dfc6.zip
Improvement: Add event level up message to chat filter (#1214)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
index c8863fcea..bede93187 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
@@ -307,4 +307,7 @@ object StringUtils {
fun String.isRoman(): Boolean {
return UtilsPatterns.isRomanPattern.matches(this)
}
+ fun isEmpty(message: String): Boolean {
+ return message.removeColor().trimWhiteSpaceAndResets().isEmpty()
+ }
}