mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-21 21:55:09 +00:00
disallow a hashtag with only numbers
This commit is contained in:
parent
553fb28280
commit
a4ebd7640b
1 changed files with 4 additions and 1 deletions
|
@ -341,7 +341,10 @@ hashtag
|
|||
}
|
||||
|
||||
hashtagContent
|
||||
= (hashtagBracketPair / hashtagChar)+ { return text(); }
|
||||
= !([0-9]+ !hashtagContentPart) hashtagContentPart+ { return text(); }
|
||||
|
||||
hashtagContentPart
|
||||
= hashtagBracketPair / hashtagChar
|
||||
|
||||
hashtagBracketPair
|
||||
= "(" hashtagContent* ")"
|
||||
|
|
Loading…
Reference in a new issue