mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
parent
5afdb5de35
commit
c73b7d1184
@ -232,7 +232,7 @@ void _pasteSingleLine(
|
||||
/// parse url from the line text
|
||||
/// reference: https://stackoverflow.com/questions/59444837/flutter-dart-regex-to-extract-urls-from-a-string
|
||||
Delta _lineContentToDelta(String lineContent) {
|
||||
final exp = RegExp(r'(?:(?:https?|ftp):\/\/)?[\w/\-?=%.]+\.[\w/\-?=%.]+');
|
||||
final exp = RegExp(r'(?:(?:https?|ftp):\/\/)?[\w/\-?=%.]+\.[\#\w/\-?=%.]+');
|
||||
final Iterable<RegExpMatch> matches = exp.allMatches(lineContent);
|
||||
|
||||
final delta = Delta();
|
||||
|
Loading…
Reference in New Issue
Block a user