From f28dee0ef3a0dd4a0819a3d3a1c800a83a0f07f5 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 1 Mar 2024 10:46:54 +0100 Subject: Add more color code tests [no changelog] --- src/main/kotlin/moe/nea/firmament/util/textutil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/moe/nea') diff --git a/src/main/kotlin/moe/nea/firmament/util/textutil.kt b/src/main/kotlin/moe/nea/firmament/util/textutil.kt index 1d61332..cfe548d 100644 --- a/src/main/kotlin/moe/nea/firmament/util/textutil.kt +++ b/src/main/kotlin/moe/nea/firmament/util/textutil.kt @@ -93,7 +93,7 @@ fun CharSequence.removeColorCodes(keepNonColorCodes: Boolean = false): String { } val Text.unformattedString: String - get() = string.removeColorCodes().toString() + get() = string.removeColorCodes() fun Text.transformEachRecursively(function: (Text) -> Text): Text { -- cgit