linkify
linkify copied to clipboard
Low-level link (text, URLs, emails) parsing library in Dart
Fixes match issues for t.co domain URLs like: https://t.co/YoVahgAuMR
Adds quotation characters to loose url regex for cases such as example.com/over/there?name="ferret" Related to #49
Add a `PhoneNumberLinkifier` that parses phone numbers. This PR is more or less a null safe version of this [PR](https://github.com/Cretezy/linkify/pull/33) with additional tests.
Packages should not commit the "pubspec.lock" file. See https://stackoverflow.com/a/16136740/8358501
For example, in the link (example.com/over/there?name="ferret") it is highlighted until the quotation mark. Edit: Only applicable for loose URL.
### Current State Currently there is not a way to capture the original text that contributed to a `LinkifyElement`. Instead, only the modified text is available. ### Desired State A...
The regex used on UserTagLinkifier contains a negative lookbehind, which is [unsupported](https://bugs.webkit.org/show_bug.cgi?id=174931) on [Safari](https://caniuse.com/js-regexp-lookbehind). In order to being able to use the linkifier on Safari, I removed the lookbehind from...
The part of the loose url regex recognizing the domain is `[a-z]{2,4}` (https://github.com/Cretezy/linkify/blob/master/lib/src/url.dart#L10) while nowadays there are many domains name with more than 4 letters like `.design`, `.travel`, `.cloud`, etc.
Currently, URLs like `http://foo.com)你好` will be interpreted as is. Instead, it should be separated into `http://foo.com` and `)你好` (according to URL conventions). Although parentheses are by definition allowed in URLs,...