- Bump minimum Dart SDK version to 3.2.0.
- Add
parseSync()
to TextParser. - Update tests to use
parseSync()
instead ofparse()
. - Refactorings:
- Rename internal
Parser
toParserBody
. - Add new
Parser
extendingParserBody
to each of the files for web and non-web. - Move TextParser from the root to
src/
.
- Rename internal
- Change
matchers
of TextParser fromList
toIterable
. - Add
ExactMatcher
.
- Improve
parse()
to skip parsing if text is empty. - Allow empty RegExp patterns.
- Fix
UrlMatcher
andUrlLikeMatcher
to only allow a character from a very limited set of types at the end of a URL. (fb56445)
- Add
matcherIndex
toTextElement
. (#14) - Add
matcherIndex
argument towhereMatcherType()
andcontainsMatcherType()
. (#14)
- 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)
- 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
- 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.
- Add
startingOffset
argument toreassignOffsets()
. - Add
containsMatcherType<T>()
toTextElementsExtension
. - Minor refactoring.
- Downgrade meta to avoid dependency conflict with flutter_test.
- Add tests for new methods added in 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.
- Fix issue in default matchers where email address starting with URL-like text was parsed as URL. (#6)
- Improve tests.
- 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.
- Bump minimum Dart SDK version to 2.17.
- Update lint rules.
- Improve documentation.
- Add
PatternMatcher
. - Fix assertion error message of
TextMatcher
.
- Simpler handling of isolate.
- Update README.
- Update dependencies.
- Fix
TextElement
's toString() to return better string with the type name and parentheses. - Improve README slightly.
- Add
offset
toTextElement
. - Refactor tests.
- Update dev dependency.
- Add
multiLine
,caseSensitive
,unicode
anddotAll
toTextParser
. - Improve documentation and example.
- Stable null safety release.
- Simplify messaging between main thread and isolate.
- Add test to check parsing in isolate.
- Add
onlyMatches
parameter toparse()
. - Fix
UrlMatcher
andEmailMatcher
. - Improve
UrlMatcher
. - Minor improvements.
- Update README.
- Migrate to null safety.
- Internal changes needed for conditional import for web.
- Improve test to check groups with more than two elements.
- Improve documentation.
- Initial version.