Skip to content

0.1.0

Latest

Choose a tag to compare

@zbryikt zbryikt released this 08 Aug 05:11
  • features:
  • support re2js as regex engine: pass the RE2JS class directly ( auto-detected and wrapped ), or wrap explicitly with curegex.adapters.re2js(RE2JS)
  • expose effective engine as curegex.re / curegex.tw.re ( defaults to native RegExp; follows engine(...) setting ) for building ad-hoc patterns with the same engine
  • add test/: run all rules against native RegExp, re2 and re2js ( npm test )
  • tweaks:
  • pin node 22 with volta; upgrade re2 to 1.26.x
  • tw han rule: use literal char range instead of \u escape for RE2-syntax compatibility