Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Add a conformance test for autolinking URLs with paths followed by a …
Browse files Browse the repository at this point in the history
…comma
  • Loading branch information
Matt Sanford committed Nov 24, 2010
1 parent d3605ed commit 75b0baf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autolink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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>."
Expand Down

0 comments on commit 75b0baf

Please sign in to comment.