"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkIsExcludeSource = void 0;
function checkIsExcludeSource(path, exclude) {
    if (!exclude) {
        return false;
    }
    const excludes = Array.isArray(exclude) ? exclude : [exclude];
    return excludes.some(reg => reg.test(path));
}
exports.checkIsExcludeSource = checkIsExcludeSource;
