Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add non-breaking space (U+00A0) tests

  • Loading branch information...
commit 3602846259aef43e23a4d46d71fcc0d054ac16ba 1 parent 73e8298
Matt Sanford authored
Showing with 8 additions and 0 deletions.
  1. +4 −0 autolink.yml
  2. +4 −0 extract.yml
View
4 autolink.yml
@@ -432,6 +432,10 @@ tests:
text: "@user Try http:// example.com/path"
expected: "@user Try http:// example.com/path"
+ - description: "Autolink URL should NOT link URLs with domains beginning in a non-breaking space (U+00A0)"
+ text: "@user Try http:// example.com/path"
+ expected: "@user Try http:// example.com/path"
+
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
@@ -226,6 +226,10 @@ tests:
text: "@user Try http:// example.com/path"
expected: []
+ - description: "DO NOT extract URLs beginning with a non-breaking space (U+00A0)"
+ text: "@user Try http:// example.com/path"
+ expected: []
+
- description: "Extract URLs with underscores and dashes in the subdomain"
text: "test http://sub_domain-dash.twitter.com"
expected: ["http://sub_domain-dash.twitter.com"]
Please sign in to comment.
Something went wrong with that request. Please try again.