rrweb-io / rrweb-snapshot

rrweb's snapshot and rebuild module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_isBlockedElement regex logic error

AMStrix opened this issue · comments

_isBlockedElement Always returns false when blockClass is RegExp. The return statement in the forEach just exits the forEach callback function.

element.classList.forEach((className) => {
if (blockClass.test(className)) {
return true;
}
});

commented

This should be fixed with:
#64