mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-11-03 19:43:52 +00:00 
			
		
		
		
	
							parent
							
								
									5afdb5de35
								
							
						
					
					
						commit
						c73b7d1184
					
				@ -232,7 +232,7 @@ void _pasteSingleLine(
 | 
				
			|||||||
/// parse url from the line text
 | 
					/// parse url from the line text
 | 
				
			||||||
/// reference: https://stackoverflow.com/questions/59444837/flutter-dart-regex-to-extract-urls-from-a-string
 | 
					/// reference: https://stackoverflow.com/questions/59444837/flutter-dart-regex-to-extract-urls-from-a-string
 | 
				
			||||||
Delta _lineContentToDelta(String lineContent) {
 | 
					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 Iterable<RegExpMatch> matches = exp.allMatches(lineContent);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  final delta = Delta();
 | 
					  final delta = Delta();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user