mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Fix some other uses of toLowerCase() without a locale.
This commit is contained in:
@@ -3,6 +3,7 @@ package org.briarproject.bramble.identity
|
||||
import org.briarproject.bramble.api.identity.Author
|
||||
import org.briarproject.briar.api.identity.AuthorInfo
|
||||
import org.briarproject.briar.headless.json.JsonDict
|
||||
import java.util.Locale
|
||||
|
||||
fun Author.output() = JsonDict(
|
||||
"formatVersion" to formatVersion,
|
||||
@@ -11,4 +12,4 @@ fun Author.output() = JsonDict(
|
||||
"publicKey" to publicKey.encoded
|
||||
)
|
||||
|
||||
fun AuthorInfo.Status.output() = name.toLowerCase()
|
||||
fun AuthorInfo.Status.output() = name.lowercase(Locale.US)
|
||||
|
||||
@@ -4,6 +4,7 @@ import org.briarproject.bramble.identity.output
|
||||
import org.briarproject.briar.api.blog.BlogPostHeader
|
||||
import org.briarproject.briar.api.blog.MessageType
|
||||
import org.briarproject.briar.headless.json.JsonDict
|
||||
import java.util.Locale
|
||||
|
||||
internal fun BlogPostHeader.output(text: String) = JsonDict(
|
||||
"text" to text,
|
||||
@@ -18,4 +19,4 @@ internal fun BlogPostHeader.output(text: String) = JsonDict(
|
||||
"timestampReceived" to timeReceived
|
||||
)
|
||||
|
||||
internal fun MessageType.output() = name.toLowerCase()
|
||||
internal fun MessageType.output() = name.lowercase(Locale.US)
|
||||
|
||||
Reference in New Issue
Block a user