diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | 5 |
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 |