Skip to content

Commit

Permalink
Update EmojiUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
aratakileo committed Feb 27, 2024
1 parent caff18b commit 0df5307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/github/aratakileo/emogg/util/EmojiUtil.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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_]", ""),
"_"
Expand Down

0 comments on commit 0df5307

Please sign in to comment.