mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-15 03:46:33 +00:00
fix: url parser
This commit is contained in:
@ -61,7 +61,7 @@ List<InlineSpan> textToSpans(
|
||||
r'nostr:(note|nevent|naddr)[a-zA-Z0-9]+|'
|
||||
r'(#\$\$\s*[0-9]+\s*\$\$)|'
|
||||
r'(#\w+)|' // Hashtags
|
||||
r'(https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*))', // URLs
|
||||
r'(https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,10}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*))', // URLs
|
||||
caseSensitive: false,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user