Skip to content

Commit

Permalink
build: 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 21, 2023
1 parent 3f5e155 commit d045c55
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "xyz.cssxsh"
version = "1.2.1"
version = "1.3.0"

repositories {
mavenLocal()
Expand Down
7 changes: 5 additions & 2 deletions src/main/kotlin/EmojiKitchen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ public data class EmojiKitchen internal constructor(val items: Map<String, List<
}

public companion object {
@PublishedApi
internal fun String.unicode(): String {
val bytes = toByteArray(charset = Charsets.UTF_32)
return (bytes.indices step 4).joinToString(separator = "-") {
bytes.toInt(offset = it).toString(radix = 16)
}
}

internal const val LAST_UPDATE = "2023-06-08T08:53:29.000-07:00"
@PublishedApi
internal const val LAST_UPDATE: String = "2023-06-08T08:53:29.000-07:00"

// language=RegExp
internal const val EMOJI_REGEX = """\u2764\ufe0f\u200d\ud83e\ude79|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|[\u2601-\u2b50]\ufe0f?|[\ud83c\udc04-\ud83c\udff9]\ufe0f?|[\ud83d\udc0c-\ud83d\udefc]\ufe0f?|[\ud83e\udd0d-\ud83e\udee7]"""
@PublishedApi
internal const val EMOJI_REGEX: String = """\u2764\ufe0f\u200d\ud83e\ude79|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|[\u2601-\u2b50]\ufe0f?|[\ud83c\udc04-\ud83c\udff9]\ufe0f?|[\ud83d\udc0c-\ud83d\udefc]\ufe0f?|[\ud83e\udd0d-\ud83e\udee7]"""
}
}
5 changes: 3 additions & 2 deletions src/main/kotlin/MemeHelperPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import net.mamoe.mirai.console.plugin.*
import net.mamoe.mirai.console.util.*
import net.mamoe.mirai.event.*

public object MemeHelperPlugin : KotlinPlugin(
@PublishedApi
internal object MemeHelperPlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.meme-helper",
name = "meme-helper",
version = "1.2.1",
version = "1.3.0",
) {
author("cssxsh")
dependsOn("xyz.cssxsh.mirai.plugin.mirai-skia-plugin", ">= 1.1.0", false)
Expand Down

0 comments on commit d045c55

Please sign in to comment.