From d692a83f483415935819c115224d39eb808345e7 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:14:38 +0200 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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 -- cgit