From 0df530718a4c04cb76f885bea3a4cfc800a13cf0 Mon Sep 17 00:00:00 2001 From: AratakiLeo <83653555+aratakileo@users.noreply.github.com> Date: Wed, 28 Feb 2024 00:36:38 +0300 Subject: [PATCH] Update EmojiUtil.java --- src/main/java/io/github/aratakileo/emogg/util/EmojiUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/aratakileo/emogg/util/EmojiUtil.java b/src/main/java/io/github/aratakileo/emogg/util/EmojiUtil.java index 2ce497c..fd73d36 100644 --- a/src/main/java/io/github/aratakileo/emogg/util/EmojiUtil.java +++ b/src/main/java/io/github/aratakileo/emogg/util/EmojiUtil.java @@ -1,6 +1,7 @@ package io.github.aratakileo.emogg.util; import io.github.aratakileo.elegantia.math.Vector2iInterface; +import io.github.aratakileo.elegantia.util.Strings; import io.github.aratakileo.emogg.emoji.EmojiGlyph; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; @@ -77,7 +78,7 @@ public static void render( public static @NotNull String normalizeEmojiObjectKey(@NotNull String sourceValue) { return StringUtils.strip( - sourceValue.toLowerCase() + Strings.camelToSnake(sourceValue) .replaceAll("-+| +|\\.+", "_") .replaceAll("[^a-z0-9_]", ""), "_"