mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-20 00:45:56 +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:
@@ -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