Fix lint ByteOrderMark : BOM litteral -> escape \uFEFF (RemoteDocumentViewer)
CI / lint-backend (push) Successful in 1m24s
CI / lint-mobile (push) Successful in 9m1s
CI / test-backend (push) Successful in 1m44s
CI / test-mobile (push) Successful in 9m2s
CI / build-backend (push) Successful in 47s
CI / docker (push) Successful in 8s
CI / lint-backend (push) Successful in 1m24s
CI / lint-mobile (push) Successful in 9m1s
CI / test-backend (push) Successful in 1m44s
CI / test-mobile (push) Successful in 9m2s
CI / build-backend (push) Successful in 47s
CI / docker (push) Successful in 8s
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ private fun RemoteTextViewer(bytes: ByteArray, modifier: Modifier = Modifier) {
|
||||
val text = remember(bytes) {
|
||||
val capped = bytes.size > REMOTE_TEXT_MAX
|
||||
val length = minOf(bytes.size, REMOTE_TEXT_MAX)
|
||||
String(bytes, 0, length, Charsets.UTF_8).removePrefix("") to capped
|
||||
String(bytes, 0, length, Charsets.UTF_8).removePrefix("\uFEFF") to capped
|
||||
}
|
||||
Column(modifier.fillMaxSize()) {
|
||||
if (text.second) {
|
||||
|
||||
Reference in New Issue
Block a user