Slash-separated hash tags #39

Merged
merged 4 commits into from Mar 28, 2012

2 participants

@finneganh

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

@keitaf
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: "http://www.example.com/#answer"
  expected: "<a href=\"http://www.example.com/#answer\">http://www.example.com/#answer</a>"

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

@finneganh

Done.

@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