[backend/libmfm] Further improve mfm mentions parser
This commit is contained in:
parent
5edcea3ab5
commit
341a4a8ee5
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ internal class HashtagNodeParser : INodeParser
|
|||
internal class MentionNodeParser : INodeParser
|
||||
{
|
||||
private const string Pre = "@";
|
||||
private static readonly Regex Post = new(@"[\s\),:]|$");
|
||||
private static readonly Regex Post = new(@"[\s\),']|:(?:[^a-zA-Z]|)|$");
|
||||
private static readonly Regex Full = new(@"^[a-zA-Z0-9._\-]+(?:@[a-zA-Z0-9._\-]+\.[a-zA-Z0-9._\-]+)?$");
|
||||
private static readonly Regex Lookbehind = new(@"\s");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue