Merge pull request #3 from multim-dev/feature/emoji-list

fix: unqualified
This commit is contained in:
usbharu 2023-03-01 16:34:59 +09:00 committed by GitHub
commit c3d5a61ea3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class EmojiPlugin : Plugin<Project> {
else -> { else -> {
val description = s.substringAfterLast("E").substringAfter(" ") val description = s.substringAfterLast("E").substringAfter(" ")
val status = s.substringAfter(";").substringBefore("#").trim() val status = s.substringAfter(";").substringBefore("#").trim()
if (!(description.contains("skin tone")&&status.equals("unqualified"))) { if (!description.contains("skin tone") && !status.contains("unqualified")) {
val code = val code =
s.substringBefore(";").replace(Regex(" +"), " ").trim() s.substringBefore(";").replace(Regex(" +"), " ").trim()