Skip to content

Commit

Permalink
1.0.2, fix bug with whitespace (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cretezy committed Nov 5, 2018
1 parent 6fccd2f commit a7e13be
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.0.2] - 2018-11-05

* Fix bug with whitespace (https:/Cretezy/flutter_linkify/issues/1)

## [1.0.1] - 2018-09-15

* Add more documentation.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Install by adding this package to your `pubspec.yaml`:

```yaml
dependencies:
flutter_linkify: 1.0.1
flutter_linkify: 1.0.2
```
It is highly recommend that you also add a dependency on [`url_launcher`](https://pub.dartlang.org/packages/url_launcher) to open links in the browser.
Expand Down
2 changes: 1 addition & 1 deletion lib/linkify.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TextElement extends LinkifyElement {
}

final _linkifyRegex =
RegExp(r"(.*?)((?:https?):\/\/[^\s/$.?#].[^\s]*)", caseSensitive: false);
RegExp(r"(.*?\s?)((?:https?):\/\/[^\s/$.?#].[^\s]*)", caseSensitive: false);

/// Turns [text] into a list of [LinkifyElement]
List<LinkifyElement> linkify(String text) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_linkify
description: Turns text URLs into clickable inline links in text for Flutter.
version: 1.0.1
version: 1.0.2
author: Charles Crete <[email protected]>
homepage: https:/Cretezy/flutter_linkify

Expand Down

0 comments on commit a7e13be

Please sign in to comment.