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

Replace "pattern" export with "getPattern" method #243

Merged
merged 4 commits into from
Feb 16, 2024
Merged

Conversation

omrilotan
Copy link
Owner

@omrilotan omrilotan commented Feb 15, 2024

Motivation:

In builds where the tree-shaking was not removing the raw RegExp, it was causing breakage.

Resolution:

We will not expose the raw Regular expression. Instead - it will be safely built once with a fallback to a more naive pattern (no lookbehind).

This should:

Resolve #242
Resolve #236

Copy link

@bfaulk96 bfaulk96 left a comment

Choose a reason for hiding this comment

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

Seems like it would do the trick!

@omrilotan omrilotan merged commit 1fba71e into main Feb 16, 2024
5 of 7 checks passed
@omrilotan omrilotan deleted the pattern_export branch February 16, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants