Migrate to pure Dart RegExp
alexeyinkin opened this issue · comments
alexeyinkin commented
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.