Releases: moonbitlang/regexp.mbt
Releases · moonbitlang/regexp.mbt
v0.3.1
[0.3.1]
Added
Regexp::match_
: return aMatchResult?
for better experienceMatchResult::before
andMatchResult::after
: getting both sides of matched
value, similar to partition
Changed
Regexp::execute_with_remainder
is deprecated as the semantic is confusing.
UseRegexp::execute
together withMatchResult::before
and
MatchResult::after
instead.- Updated syntax to v0.6.24+012953835 (#30)
v0.3.0
[0.3.0]
Changed
MatchResult::groups
now returnsMap[String, @string.View]
instead of
Map[String, @string.View?]
to avoid the extra wrap.
Fixed
- The case insensitive check for
A-Z
did not includea-z
correctly.
v0.2.2
[0.2.2]
Fixed
- Fixed incorrect case insensitive check
v0.2.1
[0.2.1]
Changed
- Updated syntax to 0.6.20
Fixed
- Updated code in
prebuild
to use the updated API
v0.2.0
[0.2.0]
Changed
- Renamed
Error_
toRegexpError
, and renamed fielddata
tosource_fragment
. - Renamed
Engine
toRegexp
. - Renamed
MatchResult::group
toMatchResult::get
. - Replaced
MatchResult::group_by_name
withMatchResult::results
that returns a wholeMap
. MatchResult::results
now returns anArray
instead ofIter
.Regexp::group_names
now returns anArray
instead ofIter
.- Replaced
MatchResult::rest
withRegexp::execute_with_remainder
.
v0.1.0
chore: reserve control escape