@posthog/rrweb-player 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.
@@ -714,7 +714,10 @@ const pseudoClassPlugin = {
714
714
  fixed.push(rule2);
715
715
  rule2.selectors.forEach(function(selector) {
716
716
  if (selector.includes(":hover")) {
717
- rule2.selector += ",\n" + selector.replace(/:hover/g, ".\\:hover");
717
+ const newSelector = selector.replace(new RegExp("(?<!\\\\):hover", "g"), ".\\:hover");
718
+ if (newSelector !== selector) {
719
+ rule2.selector += ",\n" + newSelector;
720
+ }
718
721
  }
719
722
  });
720
723
  }