Permalink
Browse files

Adds a URL test specifically for fragments

  • Loading branch information...
1 parent f7dc535 commit de83c5336101bb534cac8fdbd61ca1b8f6b10821 Pete Hopkins committed Mar 6, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 autolink.yml
View
@@ -567,6 +567,10 @@ tests:
text: "http://www.flickr.com/photos/29674651@N00/foobar"
expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/foobar\">http://www.flickr.com/photos/29674651@N00/foobar</a>"
+ - 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 URL with only a domain followed by a period doesn't swallow the period."
text: "I think it's proper to end sentences with a period http://tell.me.com. Even when they contain a URL."
expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me.com\">http://tell.me.com</a>. Even when they contain a URL."

0 comments on commit de83c53

Please sign in to comment.