Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No neg lookbehind #1493

Merged
merged 4 commits into from
Jun 5, 2024
Merged

No neg lookbehind #1493

merged 4 commits into from
Jun 5, 2024

Conversation

eoghanmurray
Copy link
Contributor

Safari 16 doesn't support it

  • this is a fixup for negative lookbehind which was recently added in Fix and test for bug #1457 #1481
  • instead I'm asserting the non-presence of a slash before a quote; which means these quoted bits can't be at the start of the content, which I think is okay.

A css construction that might now fail (I haven't tested this):

"my-quoted-css-rule" { color: blue; } 

Copy link

changeset-bot bot commented Jun 4, 2024

🦋 Changeset detected

Latest commit: c7966b2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
rrweb-snapshot Patch
rrweb Patch
rrdom Patch
rrdom-nodejs Patch
rrweb-player Patch
@rrweb/types Patch
@rrweb/web-extension Patch
rrvideo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Juice10
Copy link
Contributor

Juice10 commented Jun 5, 2024

Thanks @eoghanmurray!

@Juice10 Juice10 merged commit 82f6fec into rrweb-io:master Jun 5, 2024
6 checks passed
jeffdnguyen pushed a commit to pendo-io/rrweb that referenced this pull request Jul 29, 2024
* Older versions of Safari 16 don't support lookbehind assertions - https://caniuse.com/js-regexp-lookbehind

* Refactor to show the similarity between these two regexes

* Apply formatting changes

* Create no-neg-lookbehind.md

---------

Co-authored-by: eoghanmurray <[email protected]>
jeffdnguyen pushed a commit to pendo-io/rrweb that referenced this pull request Jul 29, 2024
* Older versions of Safari 16 don't support lookbehind assertions - https://caniuse.com/js-regexp-lookbehind

* Refactor to show the similarity between these two regexes

* Apply formatting changes

* Create no-neg-lookbehind.md

---------

Co-authored-by: eoghanmurray <[email protected]>
jxiwang pushed a commit to amplitude/rrweb that referenced this pull request Aug 6, 2024
* Older versions of Safari 16 don't support lookbehind assertions - https://caniuse.com/js-regexp-lookbehind

* Refactor to show the similarity between these two regexes

* Apply formatting changes

* Create no-neg-lookbehind.md

---------

Co-authored-by: eoghanmurray <[email protected]>
billyvg pushed a commit to getsentry/rrweb that referenced this pull request Sep 17, 2024
* Older versions of Safari 16 don't support lookbehind assertions - https://caniuse.com/js-regexp-lookbehind

* Refactor to show the similarity between these two regexes

* Apply formatting changes

* Create no-neg-lookbehind.md

---------

Co-authored-by: eoghanmurray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants