Slash-separated hash tags #39

merged 4 commits into from Mar 28, 2012

2 participants


Adds conformance tests for auto-linking slash-separated hashtags (e.g. "#dodge/#answer"). Also adds a fragment-specific URL test to make sure that changes don't affect URL auto-linking.

Addresses: twitter-archive/twitter-text-js#43

Twitter, Inc. member

Can you please add the following test case (the same one you added under "urls:" section) also under "all:" section (after line 650) in autolink.yml?

- description: "Autolink url with a hashtag-looking fragment"
  text: ""
  expected: "<a href=\"\"></a>"

This is to test Autolink.autolink() method, which calls autolinkHashtags/Urls/UsernamesAndLists() all together.



@keitaf keitaf merged commit 1ff214f into twitter:master Mar 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment