[backend/libmfm] Improve custom emoji regex
This commit is contained in:
parent
21580a3678
commit
f5aa7f6ff6
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ internal class SilentLinkNodeParser : INodeParser
|
||||||
internal class EmojiCodeNodeParser : INodeParser
|
internal class EmojiCodeNodeParser : INodeParser
|
||||||
{
|
{
|
||||||
private const string Char = ":";
|
private const string Char = ":";
|
||||||
private static readonly Regex Full = new("^[a-z0-9_+-]+$");
|
private static readonly Regex Full = new("^[^.@\\s]+$");
|
||||||
|
|
||||||
public bool IsValid(string buffer, int position)
|
public bool IsValid(string buffer, int position)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue