Skip to content

Commit

Permalink
Add quotation marks to loose url regex (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
atillaturkmen authored May 15, 2023
1 parent fb3852d commit 7c2aa8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/url.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ final _urlRegex = RegExp(
);

final _looseUrlRegex = RegExp(
r'^(.*?)((https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*))',
r'^(.*?)((https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//="'`]*))',
caseSensitive: false,
dotAll: true,
);
Expand Down

0 comments on commit 7c2aa8b

Please sign in to comment.