Remove unnecessary parenthesis
This commit is contained in:
parent
00e26f0c6b
commit
02e40a9fe0
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue