@posthog/rrweb-snapshot 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.
@@ -1619,7 +1619,10 @@ var require_replay = __commonJS({
1619
1619
  fixed.push(rule2);
1620
1620
  rule2.selectors.forEach(function(selector) {
1621
1621
  if (selector.includes(":hover")) {
1622
- rule2.selector += ",\n" + selector.replace(/:hover/g, ".\\:hover");
1622
+ const newSelector = selector.replace(new RegExp("(?<!\\\\):hover", "g"), ".\\:hover");
1623
+ if (newSelector !== selector) {
1624
+ rule2.selector += ",\n" + newSelector;
1625
+ }
1623
1626
  }
1624
1627
  });
1625
1628
  }