text_parser 2.4.0
text_parser: ^2.4.0 copied to clipboard
A Dart package for flexibly parsing text into easy-to-handle format according to multiple regular expression patterns.
2.4.0 #
- Bump minimum Dart SDK version to 3.2.0.
- Add
parseSync()to TextParser. - Update tests to use
parseSync()instead ofparse(). - Refactorings:
- Rename internal
ParsertoParserBody. - Add new
ParserextendingParserBodyto each of the files for web and non-web. - Move TextParser from the root to
src/.
- Rename internal
2.3.0 #
- Change
matchersof TextParser fromListtoIterable. - Add
ExactMatcher.
2.2.0 #
- Improve
parse()to skip parsing if text is empty. - Allow empty RegExp patterns.
2.1.1 #
- Fix
UrlMatcherandUrlLikeMatcherto 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
UrlMatcherto exclude backslashes. - Add
UrlLikeMatcherthat matches URL-like strings not starting with http(s). (#10)- This behaves the same way as
UrlMatcherused 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:
UrlMatchernow matches only URLs starting with http(s). (#10)- This also affects the behaviour of TextParser with the default matchers.
- Non-breaking:
- Fix
UrlMatcherto exclude backslashes. - Add
UrlLikeMatcherthat matches URL-like strings not starting with http(s). (#10)- This behaves the same way as
UrlMatcherused 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
startingOffsetargument 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
TextElementto a concrete class. - Add
copyWith()toTextElement. - Add
TextElementsExtensionwithwhereMatcherType<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 andhashCodeofTextElement. - 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
offsettoTextElement. - Refactor tests.
- Update dev dependency.
0.2.0 #
- Add
multiLine,caseSensitive,unicodeanddotAlltoTextParser. - 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
onlyMatchesparameter toparse(). - Fix
UrlMatcherandEmailMatcher. - 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.