Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tests for urls with @-signs in them.

  • Loading branch information...
commit e34bbf4bb5e1cab986074d695426f722fc96ac20 1 parent 72f6671
@jmhodges jmhodges authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 autolink.yml
View
8 autolink.yml
@@ -243,6 +243,14 @@ tests:
text: "WWW.EXAMPLE.COM"
expected: "<a href=\"http://WWW.EXAMPLE.COM\">WWW.EXAMPLE.COM</a>"
+ - description: "Autolink url that includes @-sign and numeric dir under it"
+ text: "http://www.flickr.com/photos/29674651@N00/4382024406"
+ expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a>"
+
+ - description: "Autolink url that includes @-sign and non-numeric dir under it"
+ text: "http://www.flickr.com/photos/29674651@N00/foobar"
+ expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/foobar</a>"
+
all:
- description: "Autolink url does not overlap @username"
text: "Check out: http://example.com/test&@chasesechrist"
Please sign in to comment.
Something went wrong with that request. Please try again.