github pemistahl/grex v0.3.1
grex 0.3.1

latest releases: v1.4.5, v1.4.4, v1.4.3...
4 years ago

Test Coverage

  • property tests have been added using the proptest crate
  • big thanks go to Christophe Biocca for pointing me to the concept of property tests in the first place and for writing an initial implementation of these tests

Bug Fixes

  • some regular expression specific characters were not escaped correctly in the generated expression
  • expressions consisting of a single alternation such as ^(abc|xyz)$ were missing the outer parentheses. This caused an erroneous match of strings such as abc123 or 456xyz because of precedence rules.
  • the created DFA was wrong for repetition conversion in some corner cases. The input a, aa, aaa, aaaa, aaab previously returned the expression ^a{1,4}b?$ which erroneously matches aaaab. Now the correct expression ^(a{3}b|a{1,4})$ is returned.

Documentation

  • some minor documentation updates

Don't miss a new grex release

NewReleases is sending notifications on new releases.