Skip to content

Releases: moonbitlang/regexp.mbt

v0.3.1

11 Aug 05:56
Compare
Choose a tag to compare

[0.3.1]

Added

  • Regexp::match_ : return a MatchResult? for better experience
  • MatchResult::before and MatchResult::after : getting both sides of matched
    value, similar to partition

Changed

  • Regexp::execute_with_remainder is deprecated as the semantic is confusing.
    Use Regexp::execute together with MatchResult::before and
    MatchResult::after instead.
  • Updated syntax to v0.6.24+012953835 (#30)

v0.3.0

10 Jul 08:35
Compare
Choose a tag to compare

[0.3.0]

Changed

  • MatchResult::groups now returns Map[String, @string.View] instead of
    Map[String, @string.View?] to avoid the extra wrap.

Fixed

  • The case insensitive check for A-Z did not include a-z correctly.

v0.2.2

10 Jul 08:33
Compare
Choose a tag to compare

[0.2.2]

Fixed

  • Fixed incorrect case insensitive check

v0.2.1

09 Jul 11:18
Compare
Choose a tag to compare

[0.2.1]

Changed

  • Updated syntax to 0.6.20

Fixed

  • Updated code in prebuild to use the updated API

v0.2.0

04 Jul 09:55
Compare
Choose a tag to compare

[0.2.0]

Changed

  • Renamed Error_ to RegexpError, and renamed field data to source_fragment.
  • Renamed Engine to Regexp.
  • Renamed MatchResult::group to MatchResult::get.
  • Replaced MatchResult::group_by_name with MatchResult::results that returns a whole Map.
  • MatchResult::results now returns an Array instead of Iter.
  • Regexp::group_names now returns an Array instead of Iter.
  • Replaced MatchResult::rest with Regexp::execute_with_remainder.

v0.1.0

04 Jul 04:01
Compare
Choose a tag to compare
chore: reserve control escape