twitter-text-js
twitter-text-js copied to clipboard
change behavior of #hash autolinks
currently, #hash2 in the string "#hash1/#hash2" will not be autolinked because / is not a valid boundary. Allowing / as a valid hashtagBoundary is a possible fix, but it will also cause #hash to be mistakenly autolinked in "possible.url/#hash". Still, this might be a more desirable behavior.
Can't you just make URL linkification take precedence? Any /#hashes which aren't part of a URL get linked as hashtags, but those that are get linked as part of the URL.