Skip to content
Browse files

Adds hashtag-in-URL test to 'all' category

  • Loading branch information...
1 parent 7d28394 commit 983fbd07f9c7a27b280bd8bfe54cf11b0fc02cba @finneganh finneganh committed Mar 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 autolink.yml
View
4 autolink.yml
@@ -688,6 +688,10 @@ tests:
text: "#https://twitter.com @https://twitter.com"
expected: "#https://twitter.com @https://twitter.com"
+ - 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>"
+
- description: "Autolink hashtag if followed by . and TLD"
text: "#twitter.com #twitter.co.jp"
expected: "<a href=\"https://twitter.com/#!/search?q=%23twitter\" title=\"#twitter\" class=\"tweet-url hashtag\">#twitter</a>.com <a href=\"https://twitter.com/#!/search?q=%23twitter\" title=\"#twitter\" class=\"tweet-url hashtag\">#twitter</a>.co.jp"

0 comments on commit 983fbd0

Please sign in to comment.
Something went wrong with that request. Please try again.