[parsing] Allow mentions to end with common markup characters

This commit is contained in:
Laura Hausmann 2024-05-28 19:24:25 +02:00
parent fe3f289903
commit 79c8983015
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -241,7 +241,7 @@ module private MfmParser =
<| choice
[ spaces1
eof
skipAnyOf "()[].,;\'"
skipAnyOf "()[].,;*~\'"
skipChar ':' .>> nextCharSatisfiesNot isAsciiLetterOrNumber ])
|>> fun (user: string, host: string option) -> MfmMentionNode(acct (user, host), user, host) :> MfmNode