Skip to content
Browse files

Merge pull request #31 from twitter/punc_before_url

Modify test cases to autolink URL preceded by punctuation characters.
  • Loading branch information...
2 parents 1ff214f + bfe0283 commit f70a2221ba4ff39992d1d8842660d0ad8f1ac1c1 @keitaf keitaf committed Mar 28, 2012
Showing with 9 additions and 5 deletions.
  1. +9 −5 autolink.yml
View
14 autolink.yml
@@ -491,17 +491,21 @@ tests:
text: "text http://example.com'"
expected: "text <a href=\"http://example.com\">http://example.com</a>'"
- - description: "DO NOT Autolink url preceded by /"
+ - description: "Autolink url preceded by /"
text: "text /http://example.com"
- expected: "text /http://example.com"
+ expected: "text /<a href=\"http://example.com\">http://example.com</a>"
- - description: "DO NOT Autolink url preceded by !"
+ - description: "Autolink url preceded by !"
text: "text !http://example.com"
- expected: "text !http://example.com"
+ expected: "text !<a href=\"http://example.com\">http://example.com</a>"
- description: "DO NOT Autolink url preceded by ="
text: "text =http://example.com"
- expected: "text =http://example.com"
+ expected: "text =<a href=\"http://example.com\">http://example.com</a>"
+
+ - description: "Autolink url surrounded by double quotes"
+ text: "text \"http://example.com\""
+ expected: "text \"<a href=\"http://example.com\">http://example.com</a>\""
- description: "DO NOT Autolink url preceded by @"
text: "@http://example.com"

0 comments on commit f70a222

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