aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-12 14:14:38 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-12 14:14:38 +0200
commitd692a83f483415935819c115224d39eb808345e7 (patch)
tree87250496e14d2c4707d7d491bac2610f6220b5cc
parent5887abd5191678954e152d1b3b52fab990ca5ac0 (diff)
downloadskyhanni-d692a83f483415935819c115224d39eb808345e7.tar.gz
skyhanni-d692a83f483415935819c115224d39eb808345e7.tar.bz2
skyhanni-d692a83f483415935819c115224d39eb808345e7.zip
code cleanup
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
index 18e097ae3..58659daeb 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt
@@ -217,8 +217,7 @@ object StringUtils {
val matcher = chatUsernamePattern.matcher(username)
- if (!matcher.matches()) return "-"
- username = matcher.group("username")
- return username
+ if (!matcher.matches()) return null
+ return matcher.group("username")
}
} \ No newline at end of file