diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt | 4 |
1 files changed, 1 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 5cde8f6f9..daa619982 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/StringUtils.kt @@ -258,9 +258,7 @@ object StringUtils { return if (matcher.matches()) matcher else null } - fun String.convertToFormatted(): String { - return this.replace("&&", "§") - } + fun String.convertToFormatted(): String = this.replace("&&", "§") fun Pattern.matches(string: String) = matcher(string).matches() |