disallow a hashtag with only numbers

This commit is contained in:
marihachi 2021-06-05 17:30:23 +09:00
parent a4ebd7640b
commit 445438a557

View file

@ -341,7 +341,10 @@ hashtag
} }
hashtagContent hashtagContent
= !([0-9]+ !hashtagContentPart) hashtagContentPart+ { return text(); } = !(invalidHashtagContent !hashtagContentPart) hashtagContentPart+ { return text(); }
invalidHashtagContent
= [0-9]+
hashtagContentPart hashtagContentPart
= hashtagBracketPair / hashtagChar = hashtagBracketPair / hashtagChar