Browse files

Add a conformance test for autolinking URLs with paths followed by a …

…comma
  • Loading branch information...
1 parent d3605ed commit 75b0baf5282c07d42e1dbb2f203bb0dfc86f1e48 Matt Sanford committed Nov 24, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 autolink.yml
View
4 autolink.yml
@@ -252,6 +252,10 @@ tests:
text: "text http://example.com,"
expected: "text <a href=\"http://example.com\">http://example.com</a>,"
+ - description: "Autolink url with path followed by a comma (wihout the comma)"
+ text: "In http://example.com/test, Douglas explains 42."
+ expected: "In <a href=\"http://example.com/test\">http://example.com/test</a>, Douglas explains 42."
+
- description: "Autolink url followed by . (without it)"
text: "text http://example.com."
expected: "text <a href=\"http://example.com\">http://example.com</a>."

0 comments on commit 75b0baf

Please sign in to comment.