mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 23:45:14 +00:00
disallow a hashtag with only numbers
This commit is contained in:
parent
a4ebd7640b
commit
445438a557
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue