Remove unnecessary parenthesis

This commit is contained in:
Benoit Marty 2024-09-04 18:35:26 +02:00 committed by GitHub
parent 671def23b8
commit 23001d6751
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ fun String.containsOnlyEmojis(): Boolean {
m = matcher.toMatchResult()
// Many non-"emoji" characters are pictographics. We only want to identify this specific range
// https://en.wikipedia.org/wiki/Miscellaneous_Symbols_and_Pictographs
val isEmoji = m!!.grapheme().type == EMOJI || (m.grapheme().type == PICTOGRAPHIC && m.group() in "🌍".."🗺")
val isEmoji = m!!.grapheme().type == EMOJI || m.grapheme().type == PICTOGRAPHIC && m.group() in "🌍".."🗺"
contiguous = isEmoji and (m.start() == previous)
previous = m.end()
}