The changelog of the reregexp library.
- Add ESM module export support.
- Add
charactersOfAny
config, you can either set a global config with the static propertyReRegExp.charactersOfAny
or with aParserConf
for an instancenew ReRegExp(context, { charactersOfAny })
, it let you can define which characters can be generated by a.
character class.
- Support unicode property class syntax, e.g.
\p{Letter}
, more details have shown in README.
- Add
capture
config field, if you care about the result of the regexp group data. Also add tests for this feature.
- Optimize some regexp rules of the parser.
- Change the default export library name from 'RegexpParser' to
ReRegExp
in browser. - Make the readme more clearly.
- Upgrade the typescript and other tools dependencies versions.