...\n...
is an illegal pattern, but previously caused an error when matching: it is now reported at build time as an invalid pattern.FMBuilder
has changed from:pub fn name_matcher(mut self, matcher: (Regex, Regex)) -> Self {to:
pub fn name_matcher(mut self, ptn_re: Regex, text_re: Regex) -> Self {Calling
name_matcher
multiple times adds additional name matchers; name matchers are matched against text in the order they were added.Add ability to use wildcards at the end of lines when name matching is used (so $1...
is allowed but ...$1
and ...$1...
are still unallowed).
Fix crash caused when the remaining pattern exceeds the remaining text.
ignore_leading_whitespace
and ignore_trailing_whitespace
options. Both default to true
, meaning that per-line leading/trailing whitespace is ignored. Setting them to false makes fm
sensitive to per-line leading/trailing whitespace.First public release.