"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.escapeRegex = escapeRegex;
exports.validateMonth = validateMonth;
function escapeRegex(str) {
    if (!str || typeof str !== 'string')
        return '';
    return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
function validateMonth(month) {
    const monthRegex = /^\d{4}-(0[1-9]|1[0-2])$/;
    if (!monthRegex.test(month)) {
        throw new Error('Invalid month format. Expected YYYY-MM');
    }
    return month;
}
//# sourceMappingURL=regex-sanitizer.js.map