mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 19:42:13 +00:00
core: include trailing "_" and "!" characters in links (#6973)
* core: include trailing "_" and "!" characters in links * docs: plan for keeping trailing "_" and "!" in links
This commit is contained in:
1 parent
c82bf05293
commit
3b4bf92015
3 files changed
+157
No files matched your search
@@ -302,6 +302,8 @@ markdownP = mconcat <$> A.many' fragmentP
|
||||
isPunctuation' = \case
|
||||
'/' -> False
|
||||
')' -> False
|
||||
'_' -> False
|
||||
'!' -> False
|
||||
c -> isPunctuation c
|
||||
isUri s = T.length s >= 10 && any (`T.isPrefixOf` s) ["http://", "https://", "simplex:/"]
|
||||
-- matches what is likely to be a domain, not all valid domain names
|
||||
|
||||
Reference in new issue
Block a user