[parsing] Allow termination of mentions with the question mark character

This commit is contained in:
Laura Hausmann 2024-06-11 16:27:23 +02:00
parent dc8511632b
commit 1e0fd2efda
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

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