Add more color code tests

[no changelog]
This commit is contained in:
Linnea Gräf
2024-03-01 10:46:54 +01:00
parent 953ab2f83e
commit f28dee0ef3
2 changed files with 36 additions and 1 deletions

View File

@@ -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 {