aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-03-01 10:46:54 +0100
committerLinnea Gräf <nea@nea.moe>2024-03-01 10:46:54 +0100
commitf28dee0ef3a0dd4a0819a3d3a1c800a83a0f07f5 (patch)
tree683e422123e66e218e36c571479fa9bbdce03469 /src/main/kotlin/moe/nea
parent953ab2f83e2337b10a6c8c7dbbecf45a75ff8b59 (diff)
downloadFirmament-f28dee0ef3a0dd4a0819a3d3a1c800a83a0f07f5.tar.gz
Firmament-f28dee0ef3a0dd4a0819a3d3a1c800a83a0f07f5.tar.bz2
Firmament-f28dee0ef3a0dd4a0819a3d3a1c800a83a0f07f5.zip
Add more color code tests
[no changelog]
Diffstat (limited to 'src/main/kotlin/moe/nea')
-rw-r--r--src/main/kotlin/moe/nea/firmament/util/textutil.kt2
1 files changed, 1 insertions, 1 deletions
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 {