[parsing] Allow termination of mentions with a semicolon character

This commit is contained in:
Laura Hausmann 2024-05-23 18:58:38 +02:00
parent b543733451
commit 835796ac86
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -240,7 +240,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