Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a new conformance tests for http://domain.tld/path&@username

  • Loading branch information...
commit b5f7f2d1fe4d92b0fbe95365a5131b7e62d61410 1 parent d9aa267
Matt Sanford authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 autolink.yml
View
6 autolink.yml
@@ -230,3 +230,9 @@ tests:
- description: "Autolink url without protocol (with WWW)"
text: "WWW.EXAMPLE.COM"
expected: "<a href=\"http://WWW.EXAMPLE.COM\">WWW.EXAMPLE.COM</a>"
+
+ all:
+ - description: "Autolink url does not overlap @username"
+ text: "Check out: http://example.com/test&@chasesechrist"
+ expected: "Check out: <a href=\"http://example.com/test&\">http://example.com/test&</a>@<a class=\"tweet-url username\" href=\"http://twitter.com/chasesechrist\">chasesechrist</a>"
+
Please sign in to comment.
Something went wrong with that request. Please try again.