export function slugify(name, fallbackToken = '') {
    const s = name
        .toLowerCase()
        .replace(/[\s/]+/g, '-')
        .replace(/[^\p{L}\p{N}\-]+/gu, '')
        .replace(/-+/g, '-')
        .replace(/^-|-$/g, '');
    if (s)
        return s;
    return fallbackToken.slice(0, 8);
}
