disallow a hashtag with only numbers

This commit is contained in:
marihachi 2021-06-05 17:24:51 +09:00
parent 553fb28280
commit a4ebd7640b

View file

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