Skip to content
Snippets Groups Projects
Commit 445438a5 authored by marihachi's avatar marihachi
Browse files

disallow a hashtag with only numbers

parent a4ebd764
No related branches found
No related tags found
No related merge requests found
...@@ -341,7 +341,10 @@ hashtag ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment