@posthog/rrweb-snapshot 0.0.47 → 0.0.49

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.
@@ -617,7 +617,10 @@ var pseudoClassPlugin = {
617
617
  fixed.push(rule2);
618
618
  rule2.selectors.forEach(function(selector) {
619
619
  if (selector.includes(":hover")) {
620
- rule2.selector += ",\n" + selector.replace(/:hover/g, ".\\:hover");
620
+ const newSelector = selector.replace(new RegExp("(?<!\\\\):hover", "g"), ".\\:hover");
621
+ if (newSelector !== selector) {
622
+ rule2.selector += ",\n" + newSelector;
623
+ }
621
624
  }
622
625
  });
623
626
  }