package eu.jonahbauer.wizard.core.util;

import lombok.experimental.UtilityClass;

import java.util.Locale;

@UtilityClass
public class Util {
    public static String toSnakeCase(String str) {
        return str.replaceAll("([a-z])([A-Z]+)", "$1_$2").toLowerCase(Locale.ROOT);
    }
}
