mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
Remove unnecessary parenthesis
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ fun String.containsOnlyEmojis(): Boolean {
|
|||||||
m = matcher.toMatchResult()
|
m = matcher.toMatchResult()
|
||||||
// Many non-"emoji" characters are pictographics. We only want to identify this specific range
|
// Many non-"emoji" characters are pictographics. We only want to identify this specific range
|
||||||
// https://en.wikipedia.org/wiki/Miscellaneous_Symbols_and_Pictographs
|
// 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)
|
contiguous = isEmoji and (m.start() == previous)
|
||||||
previous = m.end()
|
previous = m.end()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user