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

Use new refa AST transformers #569

Merged
merged 2 commits into from
Sep 8, 2023
Merged

Use new refa AST transformers #569

merged 2 commits into from
Sep 8, 2023

Conversation

RunDevelopment
Copy link
Collaborator

Since the combination of Transformers.applyAssertions + Transformers.removeUnnecessaryAssertions + everything else was quite common, I added a new transformer for this in refa v0.12.0. This PR just makes 2 rules use the new transformer.

I also fixed parser.ast.flags.unicode ? 0x10ffff : 0xffff while I was at it. This was not only wrong because of the v flag, but also unnecessary. parser.maxCharacter is the value we want.

@changeset-bot
Copy link

changeset-bot bot commented Sep 6, 2023

🦋 Changeset detected

Latest commit: 9c0059e

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

This PR includes changesets to release 1 package
Name Type
eslint-plugin-regexp 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

Copy link
Owner

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@ota-meshi ota-meshi merged commit 7376975 into master Sep 8, 2023
5 checks passed
@ota-meshi ota-meshi deleted the use-new-transformers branch September 8, 2023 00:06
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