private isCurrentUrlAllowed()

in src/event-cache/EventCache.ts [219:235]


    private isCurrentUrlAllowed() {
        const location = document.location.toString();

        if (
            this.config.pagesToExclude.length > 0 &&
            this.config.pagesToExclude.some((re) => re.test(location))
        ) {
            return false;
        }

        if (
            !this.config.pagesToInclude.length ||
            this.config.pagesToInclude.some((re) => re.test(location))
        ) {
            return true;
        }
    }