"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.slugify = void 0;
const slugify = (text) => {
    text = text.replace(/^[A-Z]/g, (letter) => letter.toLowerCase());
    text = text.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
    return text
        .toLowerCase()
        .replace(/[\s_]+/g, "-")
        .replace(/[^a-z0-9-_]/g, "");
};
exports.slugify = slugify;
