aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/textutil.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-10 17:32:05 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-10 17:32:05 +0100
commitd1241fb0d94aeaa14efe68f0b14bf862d98807bf (patch)
treef989ca108c3f0de0736f16ae29845c15f62a2875 /src/main/kotlin/util/textutil.kt
parent4d0a73030dec57f0358d70314f9cefc752e5a94d (diff)
downloadFirmament-d1241fb0d94aeaa14efe68f0b14bf862d98807bf.tar.gz
Firmament-d1241fb0d94aeaa14efe68f0b14bf862d98807bf.tar.bz2
Firmament-d1241fb0d94aeaa14efe68f0b14bf862d98807bf.zip
feat: More fine grained time display
Diffstat (limited to 'src/main/kotlin/util/textutil.kt')
-rw-r--r--src/main/kotlin/util/textutil.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/util/textutil.kt b/src/main/kotlin/util/textutil.kt
index 3687743..2770b26 100644
--- a/src/main/kotlin/util/textutil.kt
+++ b/src/main/kotlin/util/textutil.kt
@@ -90,7 +90,7 @@ fun CharSequence.removeColorCodes(keepNonColorCodes: Boolean = false): String {
}
val Text.unformattedString: String
- get() = string.removeColorCodes()
+ get() = string.removeColorCodes() // TODO: maybe shortcircuit this with .visit
val Text.directLiteralStringContent: String? get() = (this.content as? PlainTextContent)?.string()