text_parser 2.3.0 text_parser: ^2.3.0 copied to clipboard
A Dart package for flexibly parsing text into easy-to-handle format according to multiple regular expression patterns.
2.3.0 #
- Change
matchers
of TextParser fromList
toIterable
. - Add
ExactMatcher
.
2.2.0 #
- Improve
parse()
to skip parsing if text is empty. - Allow empty RegExp patterns.
2.1.1 #
- Fix
UrlMatcher
andUrlLikeMatcher
to only allow a character from a very limited set of types at the end of a URL. (fb56445)
2.1.0 #
2.0.0 #
- Breaking:
- Non-breaking:
- Refactor the parser entirely. (#8)
- This resolves the issue that required a workaround when lookbehind assertion was used.
- Fix
UrlMatcher
to exclude backslashes. - Add
UrlLikeMatcher
that matches URL-like strings not starting with http(s). (#10)- This behaves the same way as
UrlMatcher
used to before this version.
- This behaves the same way as
- Add assertions to check matchers and patterns are not empty.
- Add and improve tests.
- Refactor the parser entirely. (#8)
1.2.0-dev.2 #
- Breaking:
UrlMatcher
now matches only URLs starting with http(s). (#10)- This also affects the behaviour of TextParser with the default matchers.
- Non-breaking:
- Fix
UrlMatcher
to exclude backslashes. - Add
UrlLikeMatcher
that matches URL-like strings not starting with http(s). (#10)- This behaves the same way as
UrlMatcher
used to before this version.
- This behaves the same way as
- Fix
1.2.0-dev.1 #
- Refactor the parser entirely. (#8)
- This resolves the issue that required a workaround when lookbehind assertion was used.
- Add assertions to check matchers and patterns are not empty.
- Add and improve tests.
1.1.0 #
- Add
startingOffset
argument toreassignOffsets()
. - Add
containsMatcherType<T>()
toTextElementsExtension
. - Minor refactoring.
1.0.1 #
- Downgrade meta to avoid dependency conflict with flutter_test.
- Add tests for new methods added in 1.0.0.
1.0.0 #
- Raise minimum Dart SDK version to 2.18.0.
- Remove assertion of empty match pattern from
TextMatcher
. - Change
TextElement
to a concrete class. - Add
copyWith()
toTextElement
. - Add
TextElementsExtension
withwhereMatcherType<T>()
andreassignOffsets()
methods.
0.4.2 #
- Fix issue in default matchers where email address starting with URL-like text was parsed as URL. (#6)
- Improve tests.
0.4.1 #
- Fix and improve
==
operator andhashCode
ofTextElement
. - Add tests for named groups and
PatternMatcher
. - Describe named groups in README.
- Update lint rules and fix new warnings.
0.4.0 #
- Bump minimum Dart SDK version to 2.17.
- Update lint rules.
- Improve documentation.
0.3.3 #
- Add
PatternMatcher
. - Fix assertion error message of
TextMatcher
.
0.3.2 #
- Simpler handling of isolate.
- Update README.
- Update dependencies.
0.3.1 #
- Fix
TextElement
's toString() to return better string with the type name and parentheses. - Improve README slightly.
0.3.0 #
- Add
offset
toTextElement
. - Refactor tests.
- Update dev dependency.
0.2.0 #
- Add
multiLine
,caseSensitive
,unicode
anddotAll
toTextParser
. - Improve documentation and example.
0.1.2 #
- Stable null safety release.
- Simplify messaging between main thread and isolate.
- Add test to check parsing in isolate.
0.1.1-nullsafety.1 #
- Add
onlyMatches
parameter toparse()
. - Fix
UrlMatcher
andEmailMatcher
. - Improve
UrlMatcher
. - Minor improvements.
0.1.1-nullsafety.0 #
- Update README.
0.1.0-nullsafety.0 #
- Migrate to null safety.
0.0.2 #
- Internal changes needed for conditional import for web.
- Improve test to check groups with more than two elements.
- Improve documentation.
0.0.1 #
- Initial version.