We're looking at revising the definition of hashtags in Mattermost, trying to figure out a definition that is:
simple and covers the vast majority of needs.
Thinking right now is anything starting with #
containing "letters and numbers" and the characters _
, .
, -
in between "letters and numbers" up to 25 characters would resolve as a hashtag that could be applied to messages.
So test cases could be:
- "I'm using #hásh-tag1!" autolinks
#hásh-tag1
- "I'm #hash_tag2. You?" autolinks
#hash_tag2
- "What's a #hash.tag?" autolinks
#hash.tag
- "#1, I think you're right" autolinks
#1
Questions:
Any feedback on our initial approach to defining hashtags?
Particularly from the i18n community, what are options for defining "letters and numbers"--currently hashtags have hardcoded support for umlauts, but not accent aigus, etc. we want to replace this with something widely accepted relative to global standards
Any test cases that you feel would cause non-obvious behavior?