Permalink
Browse files

Add more edge case testing for pinctuation in domains

  • Loading branch information...
1 parent 85bb047 commit f6dafb5fc7300003a452498ddf327d1619c1b1ee Matt Sanford committed Feb 3, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 autolink.yml
View
@@ -151,6 +151,14 @@ tests:
text: "I enjoy Macintosh Brand computers: http://✪df.ws/ejp"
expected: "I enjoy Macintosh Brand computers: <a href=\"http://✪df.ws/ejp\">http://✪df.ws/ejp</a>"
+ - description: "DO NOT Autolink url containing ! character in the domain"
+ text: "badly formatted http://foo!bar.com"
+ expected: "badly formatted http://foo!bar.com"
+
+ - description: "DO NOT Autolink url containing _ character in the domain"
+ text: "badly formatted http://foo_bar.com"
+ expected: "badly formatted http://foo_bar.com"
+
- description: "Autolink url preceded by :"
text: "text:http://example.com"
expected: "text:<a href=\"http://example.com\">http://example.com</a>"

0 comments on commit f6dafb5

Please sign in to comment.