mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
parent
5afdb5de35
commit
c73b7d1184
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue