@posthog/rrweb 0.0.47 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1541,7 +1541,10 @@ const pseudoClassPlugin = {
1541
1541
  fixed.push(rule2);
1542
1542
  rule2.selectors.forEach(function(selector) {
1543
1543
  if (selector.includes(":hover")) {
1544
- rule2.selector += ",\n" + selector.replace(/:hover/g, ".\\:hover");
1544
+ const newSelector = selector.replace(new RegExp("(?<!\\\\):hover", "g"), ".\\:hover");
1545
+ if (newSelector !== selector) {
1546
+ rule2.selector += ",\n" + newSelector;
1547
+ }
1545
1548
  }
1546
1549
  });
1547
1550
  }