Permalink
Browse files

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

  • Loading branch information...
1 parent 73e8298 commit 3602846259aef43e23a4d46d71fcc0d054ac16ba Matt Sanford committed May 18, 2011
Showing with 8 additions and 0 deletions.
  1. +4 −0 autolink.yml
  2. +4 −0 extract.yml
View
@@ -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
@@ -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"]

0 comments on commit 3602846

Please sign in to comment.