@grafana/faro-core
Version:
Core package of Faro.
10 lines • 383 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldIgnoreEvent = shouldIgnoreEvent;
var is_1 = require("../utils/is");
function shouldIgnoreEvent(patterns, msg) {
return patterns.some(function (pattern) {
return (0, is_1.isString)(pattern) ? msg.includes(pattern) : !!msg.match(pattern);
});
}
//# sourceMappingURL=utils.js.map