Skip to content

Commit

Permalink
Remove unnecessary parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty authored Sep 4, 2024
1 parent 671def2 commit 23001d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 23001d6

Please sign in to comment.