Permalink
Browse files

Revert files that didn't need to be changed

  • Loading branch information...
1 parent 2f15dde commit de041caa0c83ad31458f2000817a34e44db56718 Jacob Hoffman-Andrews committed Feb 1, 2012
Showing with 22 additions and 22 deletions.
  1. +13 −13 extract.yml
  2. +8 −8 hit_highlighting.yml
  3. +1 −1 validate.yml
View
@@ -42,7 +42,7 @@ tests:
expected: ["username"]
- description: "DO NOT extract 'http' in '@http://' as username"
- text: "@https://twitter.com"
+ text: "@http://twitter.com"
expected: []
- description: "Extract mentions before newline"
@@ -157,7 +157,7 @@ tests:
expected:
- description: "DO NOT Extract reply when followed by URL"
- text: "@https://twitter.com"
+ text: "@http://twitter.com"
expected:
urls:
@@ -181,9 +181,9 @@ tests:
text: "text http://google.com/#search?q=iphone%20-filter%3Alinks"
expected: ["http://google.com/#search?q=iphone%20-filter%3Alinks"]
- - description: "Extract valid URL: https://twitter.com/#search?q=iphone%20-filter%3Alinks"
- text: "text https://twitter.com/#search?q=iphone%20-filter%3Alinks"
- expected: ["https://twitter.com/#search?q=iphone%20-filter%3Alinks"]
+ - description: "Extract valid URL: http://twitter.com/#search?q=iphone%20-filter%3Alinks"
+ text: "text http://twitter.com/#search?q=iphone%20-filter%3Alinks"
+ expected: ["http://twitter.com/#search?q=iphone%20-filter%3Alinks"]
- description: "Extract valid URL: http://somedomain.com/index.php?path=/abc/def/"
text: "text http://somedomain.com/index.php?path=/abc/def/"
@@ -298,8 +298,8 @@ tests:
expected: ["twitter.com", "example.com", "t.co/abcde", "twitter.com", "example2.com", "twitter.com/abcde"]
- description: "Extract URLs with and without protocol surrounded by CJK characters"
- text: "https://twitter.com/これは日本語です。example.com中国語http://t.co/abcde한국twitter.comテストexample2.comテストhttps://twitter.com/abcde"
- expected: ["https://twitter.com/", "example.com", "http://t.co/abcde", "twitter.com", "example2.com", "https://twitter.com/abcde"]
+ text: "http://twitter.com/これは日本語です。example.com中国語http://t.co/abcde한국twitter.comテストexample2.comテストhttp://twitter.com/abcde"
+ expected: ["http://twitter.com/", "example.com", "http://t.co/abcde", "twitter.com", "example2.com", "http://twitter.com/abcde"]
- description: "DO NOT extract short URLs without protocol on ccTLD domains without path"
text: "twitter.jp日本語t.co中国語foo.jp t.co foo.jp"
@@ -394,8 +394,8 @@ tests:
expected: ["ELPAÍS.com"]
- description: "DO NOT include period at the end of URL"
- text: "test https://twitter.com/."
- expected: ["https://twitter.com/"]
+ text: "test http://twitter.com/."
+ expected: ["http://twitter.com/"]
- description: "Extract a URL with '?' in fragment"
text: "http://tn.com.ar/show/00056158/la-estrella-del-certamen-el-turno-de-pamela-anderson?fb_xd_fragment#?=&cb=fe17523f223b7&relation=parent.parent&transport=fragment&type=resize&height=20&ackdata"
@@ -435,11 +435,11 @@ tests:
expected: ["http://t.co/ulYGBYSo"]
- description: "Extract URL before newline"
- text: "https://twitter.com\nhttp://example.com\nhttp://example.com/path\nexample.com/path\nt.co\nt.co/abcde"
- expected: ["https://twitter.com", "http://example.com", "http://example.com/path", "example.com/path", "t.co/abcde"]
+ 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: "$https://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
+ text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
expected: []
urls_with_indices:
@@ -663,7 +663,7 @@ tests:
expected: ["hashtag", "hashtag2", "hashtag3"]
- description: "DO NOT extract hashtag when # is followed by URL"
- text: "#https://twitter.com #https://twitter.com"
+ text: "#http://twitter.com #https://twitter.com"
expected: []
hashtags_with_indices:
View
@@ -33,19 +33,19 @@ tests:
with_links:
- description: "Highlight after a link (offset does not include markup)"
- text: "@<a href=\"https://twitter.com/username\">username</a> this is an example"
+ text: "@<a href=\"http://twitter.com/username\">username</a> this is an example"
hits: [ [10, 14] ]
- expected: "@<a href=\"https://twitter.com/username\">username</a> <em>this</em> is an example"
+ expected: "@<a href=\"http://twitter.com/username\">username</a> <em>this</em> is an example"
- description: "Highlight anchor text of a link (offset does not include markup)"
- text: "@<a href=\"https://twitter.com/username\">username</a> this is an example"
+ text: "@<a href=\"http://twitter.com/username\">username</a> this is an example"
hits: [ [1, 9] ]
- expected: "@<a href=\"https://twitter.com/username\"><em>username</em></a> this is an example"
+ expected: "@<a href=\"http://twitter.com/username\"><em>username</em></a> this is an example"
- description: "Highlight around a link (offset does not include markup)"
- text: "@<a href=\"https://twitter.com/username\">username</a> this is an example"
+ text: "@<a href=\"http://twitter.com/username\">username</a> this is an example"
hits: [ [0, 14] ]
- expected: "<em>@<a href=\"https://twitter.com/username\">username</a> this</em> is an example"
+ expected: "<em>@<a href=\"http://twitter.com/username\">username</a> this</em> is an example"
- description: "Highlight touching tags"
text: "<a>foo</a><a>foo</a>"
@@ -68,6 +68,6 @@ tests:
expected: "foo <em>bar</em> <a><em>baz</em></a>"
- description: "Highlight mention at end"
- text: "something via @<a href=\"https://twitter.com/twitter\">twitter</a>"
+ text: "something via @<a href=\"http://twitter.com/twitter\">twitter</a>"
hits: [ [14, 22] ]
- expected: "something via <em>@<a href=\"https://twitter.com/twitter\">twitter</a></em>"
+ expected: "something via <em>@<a href=\"http://twitter.com/twitter\">twitter</a></em>"
View
@@ -106,7 +106,7 @@ tests:
expected: true
- description: "Valid url: protocol + domain + path + fragment"
- text: "https://twitter.com/#!/twitter"
+ text: "http://twitter.com/#!/twitter"
expected: true
- description: "Valid url: cased protocol and domain"

0 comments on commit de041ca

Please sign in to comment.