Skip to content

0.13.0

Choose a tag to compare

@robinst robinst released this 22 Dec 12:38
· 576 commits to main since this release

Added

  • Support for relative backreferences using \k<-1> (-1 references the
    previous group) (#121)
  • Add try_replacen to Regex which returns a Result instead of panicking
    when matching errors (#130)

Changed

  • Switch from regex crate to regex-automata and regex-syntax (lower level APIs)
    to simplify internals (#121)
  • Note: Due to above change, more backtracking is done in fancy-regex itself
    instead of regex-automata, and you might get a BacktrackLimitExceeded with
    some patterns that you didn't get before. You can increase the backtrack limit
    using RegexBuilder::backtrack_limit to help with that.
  • Allow escaping some letters in character classes, e.g. [\A] used to error
    but now matches the same as [A] (for compatibility with Oniguruma)
  • MSRV (minimum supported Rust version) is now 1.66.1 (from 1.61.0)

Fixed

  • Fix index out of bounds panic when parsing unclosed (?( (#125)