Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a document explaining the tech spec of a hashtag? #331

Open
hiteshsharma opened this issue Sep 1, 2020 · 2 comments
Open

Is there a document explaining the tech spec of a hashtag? #331

hiteshsharma opened this issue Sep 1, 2020 · 2 comments

Comments

@hiteshsharma
Copy link

The regex is very long and is very hard to understand

@andypiper
Copy link
Contributor

The main documentation for our parsing is here, however it doesn’t specifically call out hashtags. What are you interested in, whether or not a hashtag is just a term starting with a hash/pound character, or other things?

@hiteshsharma
Copy link
Author

When I see the regex, it seems there are rules for termination characters and there are some lookbacks as well. I was just interested in reading these rules somewhere rather than trying to parse that regex because I doubt I'll get it right if I simply start reading it.
Even if the regex is straightforward, it might still be a good idea to pen down the rules and specification of a hashtag somewhere, similar to how character definition is explained in the doc that you shared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants