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

Migrate to pure Dart RegExp #8

Open
alexeyinkin opened this issue Mar 17, 2023 · 0 comments
Open

Migrate to pure Dart RegExp #8

alexeyinkin opened this issue Mar 17, 2023 · 0 comments

Comments

@alexeyinkin
Copy link
Contributor

JsRegExp class was created to simplify initial migration to Highlight.js 11.7. It mimics stateful RegExp from JavaScript.

The same logic can likely be done with pure Dart RegExp using .matchAsPrefix(String str, [int start = 0])
which is cleaner and may work faster.

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

No branches or pull requests

1 participant