Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test cases for URLs preceded by $.

  • Loading branch information...
commit 0bed1d7bf8249509b9a2e4201142b47092a953ea 1 parent 69069e5
@keitaf keitaf authored
Showing with 8 additions and 0 deletions.
  1. +4 −0 autolink.yml
  2. +4 −0 extract.yml
View
4 autolink.yml
@@ -631,6 +631,10 @@ tests:
text: "See: http://t.co/abcde's page"
expected: "See: <a href=\"http://t.co/abcde\">http://t.co/abcde</a>'s page"
+ - description: "DO NOT autolink URL if preceded by $"
+ text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co"
+ expected: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co"
+
all:
- description: "Autolink all does not break on URL with @"
text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
View
4 extract.yml
@@ -438,6 +438,10 @@ tests:
text: "http://twitter.com\nhttp://example.com\nhttp://example.com/path\nexample.com/path\nt.co\nt.co/abcde"
expected: ["http://twitter.com", "http://example.com", "http://example.com/path", "example.com/path", "t.co/abcde"]
+ - description: "DO NOT extract URL if preceded by $"
+ text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co"
+ expected: []
+
urls_with_indices:
- description: "Extract a URL"
text: "text http://google.com"
Please sign in to comment.
Something went wrong with that request. Please try again.