Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 686 lines (516 sloc) 46.149 kB
4cb08c8 Add readme and sample files
Matt Sanford authored
1 tests:
2 usernames:
3 - description: "Autolink trailing username"
4 text: "text @username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
5 expected: "text @<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
6
b23c6aa Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
7 - description: "Autolink username at the beginning"
8 text: "@username text"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
9 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a> text"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
10
11 - description: "DO NOT Autolink username preceded by a letter"
b23c6aa Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
12 text: "meet@the beach"
13 expected: "meet@the beach"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
14
e32214a Add a few more username autolink tests (mostly to test git submodules)
Matt Sanford authored
15 - description: "Autolink username preceded by puctuation"
16 text: "great.@username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
17 expected: "great.@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
18
19 - description: "Autolink username followed by puctuation"
20 text: "@username&^$%^"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
21 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>&^$%^"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
22
23 - description: "Autolink username followed by Japanese"
24 text: "@usernameの"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
25 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>の"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
26
27 - description: "Autolink username preceded by Japanese"
28 text: "あ@username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
29 expected: "あ@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
30
31 - description: "Autolink username surrounded by Japanese"
e194a08 Fix bug in conformance test data: autolinking surrounded by Japanese
Matt Sanford authored
32 text: "あ@usernameの"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
33 expected: "あ@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>の"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
34
8f61e55 Fix typo in description for autolink test case
Mark Dodwell authored
35 - description: "Autolink username in compressed RT"
63f28c8 Add a conformance tests for autolinking username in old-style RTs whe…
Matt Sanford authored
36 text: "RT@username: long Tweet is loooong"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
37 expected: "RT@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>: long Tweet is loooong"
63f28c8 Add a conformance tests for autolinking username in old-style RTs whe…
Matt Sanford authored
38
84357f0 Add conformance tests for @user followed by accents (prevent spamming…
Matt Sanford authored
39 - description: "DO NOT Autolink username followed by accented latin characters"
40 text: "@aliceìnheiro something something"
41 expected: "@aliceìnheiro something something"
42
43 - description: "DO NOT Autolink username @_ in @_@"
44 text: "oh, snap! @_@"
45 expected: "oh, snap! @_@"
46
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
47 - description: "Autolink username with full-width at sign (U+FF20)"
48 text: "@username"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
49 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>"
8977065 Fill in the remainder of the user autolinking specs from the original…
Matt Sanford authored
50
51 - description: "DO NOT Autolink username over 20 characters"
52 text: "@username9012345678901"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
53 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username901234567890\">username901234567890</a>1"
73eff47 @bcherry added test for two usernames
bcherry authored
54
55 - description: "Autolink two usernames"
56 text: "@foo @bar"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
57 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/foo\">foo</a> @<a class=\"tweet-url username\" href=\"https://twitter.com/bar\">bar</a>"
8934cee @bcherry another edge case test
bcherry authored
58
687d335 @bcherry autolink usernames followed by :
bcherry authored
59 - description: "Autolink usernames followed by :"
60 text: "@foo: @bar"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
61 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/foo\">foo</a>: @<a class=\"tweet-url username\" href=\"https://twitter.com/bar\">bar</a>"
687d335 @bcherry autolink usernames followed by :
bcherry authored
62
8934cee @bcherry another edge case test
bcherry authored
63 - description: "Autolink usernames that are followed by international characters"
5b465dd @bcherry fix the yml
bcherry authored
64 text: "@foo îs in the house"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
65 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/foo\">foo</a> îs in the house"
3aca14d Update conformance for validation, extraction and autolinking of Russ…
Matt Sanford authored
66
4cb08c8 Add readme and sample files
Matt Sanford authored
67 lists:
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
68 - description: "Autolink list preceded by a space"
4cb08c8 Add readme and sample files
Matt Sanford authored
69 text: "text @username/list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
70 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
71
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
72 - description: "DO NOT Autolink list when space follows slash"
73 text: "text @username/ list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
74 expected: "text @<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>/ list"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
75
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
76 - description: "DO NOT Autolink list with empty username"
77 text: "text @/list"
78 expected: "text @/list"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
79
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
80 - description: "Autolink list at the beginning"
81 text: "@username/list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
82 expected: "@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
83
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
84 - description: "DO NOT Autolink list preceded by letter"
85 text: "meet@the/beach"
86 expected: "meet@the/beach"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
87
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
88 - description: "Autolink list preceded by puctuation"
89 text: "great.@username/list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
90 expected: "great.@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
91
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
92 - description: "Autolink list followed by puctuation"
93 text: "@username/list&^$%^"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
94 expected: "@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list\">username/list</a>&^$%^"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
95
048e0a5 Correct the list linking tests to corrently reflect the legnth restri…
Matt Sanford authored
96 - description: "Autolink list name over 25 characters (truncated to 25)"
97 text: "@username/list567890123456789012345A"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
98 expected: "@<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list567890123456789012345\">username/list567890123456789012345</a>A"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
99
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
100 - description: "Autolink list that contains an _"
101 text: "text @username/list_name"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
102 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list_name\">username/list_name</a>"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
103
104 - description: "Autolink list that contains a -"
105 text: "text @username/list-name"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
106 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list-name\">username/list-name</a>"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
107
108 - description: "Autolink list that contains a number"
109 text: "text @username/list123"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
110 expected: "text @<a class=\"tweet-url list-slug\" href=\"https://twitter.com/username/list123\">username/list123</a>"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
111
112 - description: "DO NOT Autolink list starting with a number"
113 text: "@username/1list"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
114 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/username\">username</a>/1list"
d64c3ea Add autolinking tests for other list slug formatting issues
Matt Sanford authored
115
4cb08c8 Add readme and sample files
Matt Sanford authored
116 hashtags:
117 - description: "Autolink trailing hashtag"
118 text: "text #hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
119 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
120
121 - description: "Autolink alphanumeric hashtag (letter-number-letter)"
122 text: "text #hash0tag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
123 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hash0tag\" title=\"#hash0tag\" class=\"tweet-url hashtag\">#hash0tag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
124
125 - description: "Autolink alphanumeric hashtag (number-letter)"
126 text: "text #1tag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
127 expected: "text <a href=\"https://twitter.com/#!/search?q=%231tag\" title=\"#1tag\" class=\"tweet-url hashtag\">#1tag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
128
129 - description: "Autolink hashtag with underscore"
130 text: "text #hash_tag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
131 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hash_tag\" title=\"#hash_tag\" class=\"tweet-url hashtag\">#hash_tag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
132
133 - description: "DO NOT Autolink all-numeric hashtags"
134 text: "text #1234"
135 expected: "text #1234"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
136
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
137 - description: "DO NOT Autolink hashtag preceded by a letter"
138 text: "text#hashtag"
139 expected: "text#hashtag"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
140
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
141 - description: "Autolink multiple hashtags"
142 text: "text #hashtag1 #hashtag2"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
143 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag1\" title=\"#hashtag1\" class=\"tweet-url hashtag\">#hashtag1</a> <a href=\"https://twitter.com/#!/search?q=%23hashtag2\" title=\"#hashtag2\" class=\"tweet-url hashtag\">#hashtag2</a>"
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
144
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
145 - description: "Autolink hashtag preceded by a period"
146 text: "text.#hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
147 expected: "text.<a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
148
149 - description: "DO NOT Autolink hashtag preceded by &"
150 text: "&#nbsp;"
151 expected: "&#nbsp;"
152
153 - description: "Autolink hashtag followed by ! (! not included)"
154 text: "text #hashtag!"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
155 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>!"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
156
f7dc535 @phopkins Adds test for '#dodge/#answer'
phopkins authored
157 - description: "Autolink two hashtags separated by a slash"
158 text: "#dodge/#answer"
159 expected: "<a href=\"https://twitter.com/#!/search?q=%23dodge\" title=\"#dodge\" class=\"tweet-url hashtag\">#dodge</a>/<a href=\"https://twitter.com/#!/search?q=%23answer\" title=\"#answer\" class=\"tweet-url hashtag\">#answer</a>"
160
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
161 - description: "Autolink hashtag followed by Japanese"
162 text: "text #hashtagの"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
163 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtagの\" title=\"#hashtagの\" class=\"tweet-url hashtag\">#hashtagの</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
164
165 - description: "Autolink hashtag preceded by full-width space (U+3000)"
166 text: "text #hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
167 expected: "text <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
168
169 - description: "Autolink hashtag followed by full-width space (U+3000)"
170 text: "#hashtag text"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
171 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a> text"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
172
173 - description: "Autolink hashtag with full-width hash (U+FF03)"
174 text: "#hashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
175 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
dae9d93 Fill in hashtag auto linking based on Ruby specs
Matt Sanford authored
176
a828de4 Allow accented characters in hashtags
J.P. Cummins authored
177 - description: "Autolink hashtag with accented character at the start"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
178 text: "#éhashtag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
179 expected: "<a href=\"https://twitter.com/#!/search?q=%23éhashtag\" title=\"#éhashtag\" class=\"tweet-url hashtag\">#éhashtag</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
180
181 - description: "Autolink hashtag with accented character at the end"
182 text: "#hashtagé"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
183 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashtagé\" title=\"#hashtagé\" class=\"tweet-url hashtag\">#hashtagé</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
184
185 - description: "Autolink hashtag with accented character in the middle"
186 text: "#hashétag"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
187 expected: "<a href=\"https://twitter.com/#!/search?q=%23hashétag\" title=\"#hashétag\" class=\"tweet-url hashtag\">#hashétag</a>"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
188
3aca14d Update conformance for validation, extraction and autolinking of Russ…
Matt Sanford authored
189 - description: "Autolink hashtags in Korean"
190 text: "What is #트위터 anyway?"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
191 expected: "What is <a href=\"https://twitter.com/#!/search?q=%23트위터\" title=\"#트위터\" class=\"tweet-url hashtag\">#트위터</a> anyway?"
3aca14d Update conformance for validation, extraction and autolinking of Russ…
Matt Sanford authored
192
193 - description: "Autolink hashtags in Russian"
194 text: "What is #ашок anyway?"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
195 expected: "What is <a href=\"https://twitter.com/#!/search?q=%23ашок\" title=\"#ашок\" class=\"tweet-url hashtag\">#ашок</a> anyway?"
5b38e8a Add autolink tests around accented characters
Matt Sanford authored
196
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
197 - description: "Autolink a katakana hashtag preceded by a space and followed by a space"
198 text: "カタカナ #カタカナ カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
199 expected: "カタカナ <a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
200
201 - description: "Autolink a katakana hashtag preceded by a space and followed by a bracket"
202 text: "カタカナ #カタカナ」カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
203 expected: "カタカナ <a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
204
205 - description: "Autolink a katakana hashtag preceded by a space and followed by a edge"
206 text: "カタカナ #カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
207 expected: "カタカナ <a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
208
209 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a space"
210 text: "カタカナ「#カタカナ カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
211 expected: "カタカナ「<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
212
213 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a bracket"
214 text: "カタカナ「#カタカナ」カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
215 expected: "カタカナ「<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
216
217 - description: "Autolink a katakana hashtag preceded by a bracket and followed by a edge"
218 text: "カタカナ「#カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
219 expected: "カタカナ「<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
220
221 - description: "Autolink a katakana hashtag preceded by a edge and followed by a space"
222 text: "#カタカナ カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
223 expected: "<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a> カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
224
225 - description: "Autolink a katakana hashtag preceded by a edge and followed by a bracket"
226 text: "#カタカナ」カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
227 expected: "<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>」カタカナ"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
228
229 - description: "Autolink a katakana hashtag preceded by a edge and followed by a edge"
230 text: "#カタカナ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
231 expected: "<a href=\"https://twitter.com/#!/search?q=%23カタカナ\" title=\"#カタカナ\" class=\"tweet-url hashtag\">#カタカナ</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
232
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
233 - description: "Autolink a katakana hashtag with a voiced sounds mark followed by a space"
234 text: "#ハッシュタグ テスト"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
235 expected: "<a href=\"https://twitter.com/#!/search?q=%23ハッシュタグ\" title=\"#ハッシュタグ\" class=\"tweet-url hashtag\">#ハッシュタグ</a> テスト"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
236
237 - description: "Autolink a katakana hashtag with a voiced sounds mark followed by numbers"
238 text: "#ハッシュタグ123"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
239 expected: "<a href=\"https://twitter.com/#!/search?q=%23ハッシュタグ123\" title=\"#ハッシュタグ123\" class=\"tweet-url hashtag\">#ハッシュタグ123</a>"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
240
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
241 - description: "Autolink a katakana hashtag with another voiced sounds mark"
242 text: "#パピプペポ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
243 expected: "<a href=\"https://twitter.com/#!/search?q=%23パピプペポ\" title=\"#パピプペポ\" class=\"tweet-url hashtag\">#パピプペポ</a>"
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
244
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
245 - description: "Autolink a kanji hashtag preceded by a space and followed by a space"
246 text: "漢字 #漢字 漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
247 expected: "漢字 <a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
248
249 - description: "Autolink a kanji hashtag preceded by a space and followed by a bracket"
250 text: "漢字 #漢字」漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
251 expected: "漢字 <a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
252
253 - description: "Autolink a kanji hashtag preceded by a space and followed by a edge"
254 text: "漢字 #漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
255 expected: "漢字 <a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
256
257 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a space"
258 text: "漢字「#漢字 漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
259 expected: "漢字「<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
260
261 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a bracket"
262 text: "漢字「#漢字」漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
263 expected: "漢字「<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
264
265 - description: "Autolink a kanji hashtag preceded by a bracket and followed by a edge"
266 text: "漢字「#漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
267 expected: "漢字「<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
268
269 - description: "Autolink a kanji hashtag preceded by a edge and followed by a space"
270 text: "#漢字 漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
271 expected: "<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a> 漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
272
273 - description: "Autolink a kanji hashtag preceded by a edge and followed by a bracket"
274 text: "#漢字」漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
275 expected: "<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>」漢字"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
276
277 - description: "Autolink a kanji hashtag preceded by a edge and followed by a edge"
278 text: "#漢字"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
279 expected: "<a href=\"https://twitter.com/#!/search?q=%23漢字\" title=\"#漢字\" class=\"tweet-url hashtag\">#漢字</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
280
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
281 - description: "Autolink a kanji hashtag preceded by an ideographic comma, followed by an ideographic period"
282 text: "これは、#大丈夫。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
283 expected: "これは、<a href=\"https://twitter.com/#!/search?q=%23大丈夫\" title=\"#大丈夫\" class=\"tweet-url hashtag\">#大丈夫</a>。"
076bc66 @mzsanford Add three new autolink tests for Japanese
mzsanford authored
284
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
285 - description: "Autolink a hiragana hashtag preceded by a space and followed by a space"
286 text: "ひらがな #ひらがな ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
287 expected: "ひらがな <a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
288
289 - description: "Autolink a hiragana hashtag preceded by a space and followed by a bracket"
290 text: "ひらがな #ひらがな」ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
291 expected: "ひらがな <a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
292
293 - description: "Autolink a hiragana hashtag preceded by a space and followed by a edge"
294 text: "ひらがな #ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
295 expected: "ひらがな <a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
296
297 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a space"
298 text: "ひらがな「#ひらがな ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
299 expected: "ひらがな「<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
300
301 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a bracket"
302 text: "ひらがな「#ひらがな」ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
303 expected: "ひらがな「<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
304
305 - description: "Autolink a hiragana hashtag preceded by a bracket and followed by a edge"
306 text: "ひらがな「#ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
307 expected: "ひらがな「<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
308
309 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a space"
310 text: "#ひらがな ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
311 expected: "<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a> ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
312
313 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a bracket"
314 text: "#ひらがな」ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
315 expected: "<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>」ひらがな"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
316
317 - description: "Autolink a hiragana hashtag preceded by a edge and followed by a edge"
318 text: "#ひらがな"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
319 expected: "<a href=\"https://twitter.com/#!/search?q=%23ひらがな\" title=\"#ひらがな\" class=\"tweet-url hashtag\">#ひらがな</a>"
fe8fc08 Add test cases for Hiragana, Katakana and Kanji hashtags
Matt Sanford authored
320
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
321 - description: "Autolink a Kanji/Katakana mix hashtag"
322 text: "日本語ハッシュタグ #日本語ハッシュタグ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
323 expected: "日本語ハッシュタグ <a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
324
325 - description: "DO NOT autolink a hashtag without a preceding space"
326 text: "日本語ハッシュタグ#日本語ハッシュタグ"
327 expected: "日本語ハッシュタグ#日本語ハッシュタグ"
328
329 - description: "DO NOT include a punctuation in a hashtag"
330 text: "#日本語ハッシュタグ。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
331 expected: "<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>。"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
332
333 - description: "Autolink a hashtag after a punctuation"
334 text: "日本語ハッシュタグ。#日本語ハッシュタグ"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
335 expected: "日本語ハッシュタグ。<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>"
79b04d3 Add in Keita's negative test cases and mixed-script cases
Matt Sanford authored
336
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
337 - description: "Autolink a hashtag with chouon"
338 text: "長音ハッシュタグ。#サッカー"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
339 expected: "長音ハッシュタグ。<a href=\"https://twitter.com/#!/search?q=%23サッカー\" title=\"#サッカー\" class=\"tweet-url hashtag\">#サッカー</a>"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
340
341 - description: "Autolink a hashtag with half-width chouon"
342 text: "長音ハッシュタグ。#サッカー"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
343 expected: "長音ハッシュタグ。<a href=\"https://twitter.com/#!/search?q=%23サッカー\" title=\"#サッカー\" class=\"tweet-url hashtag\">#サッカー</a>"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
344
345 - description: "Autolink a hashtag with half-width # after full-width !"
346 text: "できましたよー!#日本語ハッシュタグ。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
347 expected: "できましたよー!<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>。"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
348
349 - description: "Autolink a hashtag with full-width # after full-width !"
350 text: "できましたよー!#日本語ハッシュタグ。"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
351 expected: "できましたよー!<a href=\"https://twitter.com/#!/search?q=%23日本語ハッシュタグ\" title=\"#日本語ハッシュタグ\" class=\"tweet-url hashtag\">#日本語ハッシュタグ</a>。"
0361d8c @keitaf add more JA hashtag test cases.
keitaf authored
352
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
353 - description: "Autolink a hashtag containing ideographic iteration mark"
354 text: "#云々"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
355 expected: "<a href=\"https://twitter.com/#!/search?q=%23云々\" title=\"#云々\" class=\"tweet-url hashtag\">#云々</a>"
3deb3d8 @keitaf add test cases with Japanese half-width voiced sounds marks and ideog…
keitaf authored
356
fd5d855 @mzsanford Japanese edge cases, meet your match.
mzsanford authored
357 - description: "Autolink multiple hashtags in multiple languages"
358 text: "Hashtags in #中文, #日本語, #한국말, and #русский! Try it out!"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
359 expected: "Hashtags in <a href=\"https://twitter.com/#!/search?q=%23中文\" title=\"#中文\" class=\"tweet-url hashtag\">#中文</a>, <a href=\"https://twitter.com/#!/search?q=%23日本語\" title=\"#日本語\" class=\"tweet-url hashtag\">#日本語</a>, <a href=\"https://twitter.com/#!/search?q=%23한국말\" title=\"#한국말\" class=\"tweet-url hashtag\">#한국말</a>, and <a href=\"https://twitter.com/#!/search?q=%23русский\" title=\"#русский\" class=\"tweet-url hashtag\">#русский</a>! Try it out!"
fd5d855 @mzsanford Japanese edge cases, meet your match.
mzsanford authored
360
da94908 @mzsanford Add tests for U+015F in hashtags: https://github.com/twitter/twitter-…
mzsanford authored
361 - description: "Autolink should allow for ş (U+015F) in a hashtag"
362 text: "Here’s a test tweet for you: #Ateş #qrşt #ştu #ş"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
363 expected: "Here’s a test tweet for you: <a href=\"https://twitter.com/#!/search?q=%23Ateş\" title=\"#Ateş\" class=\"tweet-url hashtag\">#Ateş</a> <a href=\"https://twitter.com/#!/search?q=%23qrşt\" title=\"#qrşt\" class=\"tweet-url hashtag\">#qrşt</a> <a href=\"https://twitter.com/#!/search?q=%23ştu\" title=\"#ştu\" class=\"tweet-url hashtag\">#ştu</a> <a href=\"https://twitter.com/#!/search?q=%23ş\" title=\"\" class=\"tweet-url hashtag\">#ş</a>"
da94908 @mzsanford Add tests for U+015F in hashtags: https://github.com/twitter/twitter-…
mzsanford authored
364
64d9818 @keitaf Add test cases for hashtags with Latin extended characters.
keitaf authored
365 - description: "Autolink a hashtag with Latin extended character"
366 text: "#mûǁae"
367 expected: "<a href=\"https://twitter.com/#!/search?q=%23mûǁae\" title=\"#mûǁae\" class=\"tweet-url hashtag\">#mûǁae</a>"
368
def2757 @keitaf Add test cases for Arabic and Thai hashtags.
keitaf authored
369 - description: "Autolink Arabic hashtag"
370 text: "Arabic hashtag: #فارسی #لس_آنجلس"
371 expected: "Arabic hashtag: <a href=\"https://twitter.com/#!/search?q=%23فارسی\" title=\"#فارسی\" class=\"tweet-url hashtag\">#فارسی</a> <a href=\"https://twitter.com/#!/search?q=%23لس_آنجلس\" title=\"#لس_آنجلس\" class=\"tweet-url hashtag\">#لس_آنجلس</a>"
372
373 - description: "Autolink Thai hashtag"
374 text: "Thai hashtag: #รายละเอียด"
375 expected: "Thai hashtag: <a href=\"https://twitter.com/#!/search?q=%23รายละเอียด\" title=\"#รายละเอียด\" class=\"tweet-url hashtag\">#รายละเอียด</a>"
376
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
377 urls:
62c6f38 Allow pipe character in URLs
Mark Christian authored
378 - description: "Autolink URL with pipe character"
379 text: "text http://example.com/pipe|character?yes|pipe|character"
f9a6d72 @hoverbird Fix typo
hoverbird authored
380 expected: "text <a href=\"http://example.com/pipe|character?yes|pipe|character\">http://example.com/pipe|character?yes|pipe|character</a>"
62c6f38 Allow pipe character in URLs
Mark Christian authored
381
ba63a8a Remove trailing spaces. Re-order autolink conformance data
Matt Sanford authored
382 - description: "Autolink trailing url"
383 text: "text http://example.com"
384 expected: "text <a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
385
386 - description: "Autolink url in mid-text"
387 text: "text http://example.com more text"
388 expected: "text <a href=\"http://example.com\">http://example.com</a> more text"
389
390 - description: "Autolink url in Japanese text"
391 text: "いまなにしてるhttp://example.comいまなにしてる"
392 expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
393
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
394 - description: "Autolink url surrounded by parentheses does not capture them"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
395 text: "text (http://example.com)"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
396 expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
397
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
398 - description: "Autolink url with path surrounded by parentheses does not capture them"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
399 text: "text (http://example.com/test)"
400 expected: "text (<a href=\"http://example.com/test\">http://example.com/test</a>)"
401
402 - description: "Autolink url with embedded parentheses"
83e4218 @hoverbird Tweak cases for matching parentheses in URLs
hoverbird authored
403 text: "text http://msdn.com/S(deadbeef)/page.htm"
ee1441d Mistyped test data
Matt Sanford authored
404 expected: "text <a href=\"http://msdn.com/S(deadbeef)/page.htm\">http://msdn.com/S(deadbeef)/page.htm</a>"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
405
0afbdd6 @syo68k Added test case to autolink.yml (see also https://github.com/twitter/…
syo68k authored
406 - description: "Extract valid URL: http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx"
407 text: "text http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx"
90e5503 @keitaf Fix a broken test.
keitaf authored
408 expected: "text <a href=\"http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx\">http://msdn.microsoft.com/ja-jp/library/system.net.httpwebrequest(v=VS.100).aspx</a>"
0afbdd6 @syo68k Added test case to autolink.yml (see also https://github.com/twitter/…
syo68k authored
409
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored
410 - description: "Autolink url with balanced parens hiding XSS"
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
411 text: 'text http://foo.com/("onclick="alert(1)")'
412 expected: 'text <a href="http://foo.com/">http://foo.com/</a>("onclick="alert(1)")'
568af0f @bcherry test for XSS hiding between balanced parens
bcherry authored
413
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
414 - description: "Autolink url should NOT capture unbalanced parens"
415 text: "Parenthetically bad http://example.com/i_has_a_) thing"
416 expected: "Parenthetically bad <a href=\"http://example.com/i_has_a_\">http://example.com/i_has_a_</a>) thing"
417
85bb047 @hoverbird Remove conformance spec prohibiting URLs preceded by a colon
hoverbird authored
418 - description: "Autolink url containing unicode characters"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
419 text: "I enjoy Macintosh Brand computers: http://✪df.ws/ejp"
8e20dfb @hoverbird Fixing quotes in new conformance test
hoverbird authored
420 expected: "I enjoy Macintosh Brand computers: <a href=\"http://✪df.ws/ejp\">http://✪df.ws/ejp</a>"
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
421
056022c Add a .co.jp autolink test
Matt Sanford authored
422 - description: "Autolink url with .co. under TLD"
423 text: "test http://www.example.co.jp"
424 expected: "test <a href=\"http://www.example.co.jp\">http://www.example.co.jp</a>"
425
f6dafb5 Add more edge case testing for pinctuation in domains
Matt Sanford authored
426 - description: "DO NOT Autolink url containing ! character in the domain"
427 text: "badly formatted http://foo!bar.com"
428 expected: "badly formatted http://foo!bar.com"
429
430 - description: "DO NOT Autolink url containing _ character in the domain"
431 text: "badly formatted http://foo_bar.com"
432 expected: "badly formatted http://foo_bar.com"
433
ba87602 @hoverbird Allow unicode characters in domains and colons preceding urls
hoverbird authored
434 - description: "Autolink url preceded by :"
435 text: "text:http://example.com"
436 expected: "text:<a href=\"http://example.com\">http://example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
437
438 - description: "Autolink url followed by ? (without it)"
439 text: "text http://example.com?"
440 expected: "text <a href=\"http://example.com\">http://example.com</a>?"
441
442 - description: "Autolink url followed by ! (without it)"
443 text: "text http://example.com!"
444 expected: "text <a href=\"http://example.com\">http://example.com</a>!"
445
446 - description: "Autolink url followed by , (without it)"
447 text: "text http://example.com,"
448 expected: "text <a href=\"http://example.com\">http://example.com</a>,"
449
75b0baf Add a conformance test for autolinking URLs with paths followed by a …
Matt Sanford authored
450 - description: "Autolink url with path followed by a comma (wihout the comma)"
451 text: "In http://example.com/test, Douglas explains 42."
452 expected: "In <a href=\"http://example.com/test\">http://example.com/test</a>, Douglas explains 42."
453
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
454 - description: "Autolink url followed by . (without it)"
455 text: "text http://example.com."
456 expected: "text <a href=\"http://example.com\">http://example.com</a>."
457
458 - description: "Autolink url followed by : (without it)"
459 text: "text http://example.com:"
460 expected: "text <a href=\"http://example.com\">http://example.com</a>:"
461
462 - description: "Autolink url followed by ; (without it)"
463 text: "text http://example.com;"
464 expected: "text <a href=\"http://example.com\">http://example.com</a>;"
465
466 - description: "Autolink url followed by ] (without it)"
467 text: "text http://example.com]"
468 expected: "text <a href=\"http://example.com\">http://example.com</a>]"
469
470 - description: "Autolink url followed by ) (without it)"
471 text: "text http://example.com)"
472 expected: "text <a href=\"http://example.com\">http://example.com</a>)"
473
474 - description: "Autolink url followed by } (without it)"
475 text: "text http://example.com}"
476 expected: "text <a href=\"http://example.com\">http://example.com</a>}"
477
478 - description: "Autolink url followed by = (without it)"
479 text: "text http://example.com="
480 expected: "text <a href=\"http://example.com\">http://example.com</a>="
481
482 - description: "Autolink url followed by ' (without it)"
483 text: "text http://example.com'"
484 expected: "text <a href=\"http://example.com\">http://example.com</a>'"
485
486 - description: "DO NOT Autolink url preceded by /"
487 text: "text /http://example.com"
488 expected: "text /http://example.com"
489
490 - description: "DO NOT Autolink url preceded by !"
491 text: "text !http://example.com"
492 expected: "text !http://example.com"
493
494 - description: "DO NOT Autolink url preceded by ="
495 text: "text =http://example.com"
496 expected: "text =http://example.com"
497
335add9 @bcherry don't allow @ as a preceding character for URLs
bcherry authored
498 - description: "DO NOT Autolink url preceded by @"
499 text: "@http://example.com"
500 expected: "@http://example.com"
501
502 - description: "DO NOT Autolink domain in email address"
503 text: "foo@bar.com"
504 expected: "foo@bar.com"
505
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
506 - description: "Autolink url embedded in link tag"
507 text: "<link rel='true'>http://example.com</link>"
508 expected: "<link rel='true'><a href=\"http://example.com\">http://example.com</a></link>"
509
510 - description: "Autolink multiple urls"
511 text: "http://example.com https://sslexample.com http://sub.example.com"
4c437bc Remove invalid test case
Matt Sanford authored
512 expected: "<a href=\"http://example.com\">http://example.com</a> <a href=\"https://sslexample.com\">https://sslexample.com</a> <a href=\"http://sub.example.com\">http://sub.example.com</a>"
7f54f4c Fill in some URL autolinking from the Ruby specs
Matt Sanford authored
513
514 - description: "Autolink url with long TLD"
515 text: "http://example.mobi/path"
516 expected: "<a href=\"http://example.mobi/path\">http://example.mobi/path</a>"
517
49f08f5 @bcherry new conformance behavior
bcherry authored
518 - description: "Autolink url containing ending with #value (not as url + hashtag)"
519 text: "http://foo.com/?#foo"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
520 expected: "<a href=\"http://foo.com/?#foo\">http://foo.com/?#foo</a>"
49f08f5 @bcherry new conformance behavior
bcherry authored
521
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
522 - description: "DO NOT Autolink url without protocol (with www)"
49f08f5 @bcherry new conformance behavior
bcherry authored
523 text: "www.example.biz"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
524 expected: "www.example.biz"
8e920e6 Add case sensitivity test for link without protocol
Matt Sanford authored
525
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
526 - description: "DO NOT Autolink url without protocol (with WWW)"
49f08f5 @bcherry new conformance behavior
bcherry authored
527 text: "WWW.EXAMPLE.BIZ"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
528 expected: "WWW.EXAMPLE.BIZ"
49f08f5 @bcherry new conformance behavior
bcherry authored
529
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
530 - description: "DO NOT Autolink URL without protocol and without www (ending in .com)"
49f08f5 @bcherry new conformance behavior
bcherry authored
531 text: "foo.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
532 expected: "foo.com"
49f08f5 @bcherry new conformance behavior
bcherry authored
533
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
534 - description: "DO NOT Autolink URL without protocol and without www (ending in .org)"
49f08f5 @bcherry new conformance behavior
bcherry authored
535 text: "foo.org"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
536 expected: "foo.org"
49f08f5 @bcherry new conformance behavior
bcherry authored
537
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
538 - description: "DO NOT Autolink URL without protocol and without www (ending in .net)"
49f08f5 @bcherry new conformance behavior
bcherry authored
539 text: "foo.net"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
540 expected: "foo.net"
49f08f5 @bcherry new conformance behavior
bcherry authored
541
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
542 - description: "DO NOT Autolink URL without protocol and without www (ending in .gov)"
49f08f5 @bcherry new conformance behavior
bcherry authored
543 text: "foo.gov"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
544 expected: "foo.gov"
49f08f5 @bcherry new conformance behavior
bcherry authored
545
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
546 - description: "DO NOT Autolink URL without protocol and without www (ending in .edu)"
49f08f5 @bcherry new conformance behavior
bcherry authored
547 text: "foo.edu"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
548 expected: "foo.edu"
49f08f5 @bcherry new conformance behavior
bcherry authored
549
550 - description: "Autolink URL without protocol and without www not ending in /.(edu|com|gov|org|net)/"
551 text: "foo.it twitter.co.jp foo.commerce foo.nettastic foo.us foo.co.uk"
552 expected: "foo.it twitter.co.jp foo.commerce foo.nettastic foo.us foo.co.uk"
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
553
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
554 - description: "Multiple URLs with different protocols but not without a protocol"
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
555 text: "http://foo.com AND https://bar.com AND www.foobar.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
556 expected: "<a href=\"http://foo.com\">http://foo.com</a> AND <a href=\"https://bar.com\">https://bar.com</a> AND www.foobar.com"
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
557
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
558 - description: "Autolink raw domain followed by domain only links the first"
0aeb418 Add a test for two valid domains divided by a space
Matt Sanford authored
559 text: "See http://example.com example.com"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
560 expected: "See <a href=\"http://example.com\">http://example.com</a> example.com"
0aeb418 Add a test for two valid domains divided by a space
Matt Sanford authored
561
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored
562 - description: "Autolink url that includes @-sign and numeric dir under it"
563 text: "http://www.flickr.com/photos/29674651@N00/4382024406"
564 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a>"
565
566 - description: "Autolink url that includes @-sign and non-numeric dir under it"
567 text: "http://www.flickr.com/photos/29674651@N00/foobar"
e119e95 Correct the flickr-ish path info
Matt Sanford authored
568 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/foobar\">http://www.flickr.com/photos/29674651@N00/foobar</a>"
e34bbf4 @jmhodges tests for urls with @-signs in them.
jmhodges authored
569
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
570 - description: "Autolink URL with only a domain followed by a period doesn't swallow the period."
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
571 text: "I think it's proper to end sentences with a period http://tell.me.com. Even when they contain a URL."
572 expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me.com\">http://tell.me.com</a>. Even when they contain a URL."
1e2ddb5 @hoverbird Added failing cases for URLs surrounded by parens and URLs followed b…
hoverbird authored
573
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
574 - description: "Autolink URL with a path followed by a period doesn't swallow the period."
1e2ddb5 @hoverbird Added failing cases for URLs surrounded by parens and URLs followed b…
hoverbird authored
575 text: "I think it's proper to end sentences with a period http://tell.me/why. Even when they contain a URL."
576 expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me/why\">http://tell.me/why</a>. Even when they contain a URL."
577
0913a3d @hoverbird Added test cases for URLs followed by a period for basic URLs as well…
hoverbird authored
578 - description: "Autolink URL with a query followed by a period doesn't swallow the period."
579 text: "I think it's proper to end sentences with a period http://tell.me/why?=because.i.want.it. Even when they contain a URL."
580 expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me/why?=because.i.want.it\">http://tell.me/why?=because.i.want.it</a>. Even when they contain a URL."
581
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sin…
hoverbird authored
582 - description: "Autolink URL with a hyphen in the domain name"
583 text: "Czech out sweet deals at http://mrs.domain-dash.biz ok?"
584 expected: "Czech out sweet deals at <a href=\"http://mrs.domain-dash.biz\">http://mrs.domain-dash.biz</a> ok?"
585
64578fb Add punycode test case
Matt Sanford authored
586 - description: "Autolink an IDN (punycode) domain and TLD"
587 text: "See also: http://xn--80abe5aohbnkjb.xn--p1ai/"
588 expected: "See also: <a href=\"http://xn--80abe5aohbnkjb.xn--p1ai/\">http://xn--80abe5aohbnkjb.xn--p1ai/</a>"
589
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored
590 - description: "Autolink URL should NOT autolink www...foo"
591 text: "Is www...foo a valid URL?"
592 expected: "Is www...foo a valid URL?"
593
594 - description: "Autolink URL should NOT autolink www.-foo.com"
595 text: "Is www.-foo.com a valid URL?"
596 expected: "Is www.-foo.com a valid URL?"
597
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
598 - description: "Autolink URL should NOT autolink a domain with a valid dash but no protocol"
155e2bd Add conformance tests for dot and dash restrictions in domain names
Matt Sanford authored
599 text: "Is www.foo-bar.com a valid URL?"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
600 expected: "Is www.foo-bar.com a valid URL?"
601
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to…
Matt Sanford authored
602 - description: "Autolink URL should autolink a domain with a valid dash and a protocol"
a1acf2c Turn off TLD and WWW tests
Matt Sanford authored
603 text: "Is http://www.foo-bar.com a valid URL?"
36e0592 Correct the other non-protocol autolink and extraction tests
Matt Sanford authored
604 expected: "Is <a href=\"http://www.foo-bar.com\">http://www.foo-bar.com</a> a valid URL?"
9acf952 @hoverbird Add specs for URLs with embedded, matched parentheses and URLs embded…
hoverbird authored
605
7be56b7 Add a conformance test for search URLs (already passes. Toubleshootin…
Matt Sanford authored
606 - description: "Autolink URL should link search urls (with &lang=, not &lang;)"
bcddd57 @keitaf Update test cases for autolinking hashtags by adding '#!'
keitaf authored
607 text: "Check out http://search.twitter.com/#!/search?q=avro&lang=en"
608 expected: "Check out <a href=\"http://search.twitter.com/#!/search?q=avro&amp;lang=en\">http://search.twitter.com/#!/search?q=avro&amp;lang=en</a>"
7be56b7 Add a conformance test for search URLs (already passes. Toubleshootin…
Matt Sanford authored
609
48c4088 Add a test case for URLs with very long paths
Matt Sanford authored
610 - description: "Autolink URL should link urls with very long paths"
611 text: "Check out http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
612 expected: "Check out <a href=\"http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\">http://example.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</a>"
c5ef022 Add an addition XSS test
Matt Sanford authored
613
614 - description: "Autolink URL should HTML escape the URL"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
615 text: "example: https://twitter.com/otm_m@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
616 expected: "example: <a href=\"https://twitter.com/otm_m\">https://twitter.com/otm_m</a>@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
c5ef022 Add an addition XSS test
Matt Sanford authored
617
96c2f93 Add extraction/autlink tests for URL paths ending in + and -. Bump to…
Matt Sanford authored
618 - description: "Autolink URL should autolink a URL with a - or + at the end of the path"
619 text: "Go to http://example.com/a+ or http://example.com/a-"
620 expected: "Go to <a href=\"http://example.com/a+\">http://example.com/a+</a> or <a href=\"http://example.com/a-\">http://example.com/a-</a>"
e810e4e @bcherry japanese edge case
bcherry authored
621
7ff3017 Add more tests around the v1.3.1 conformance fixes
Matt Sanford authored
622 - description: "Autolink URL should autolink a URL with a - or + at the end of the path and query parameters"
623 text: "Go to http://example.com/a+?this=that or http://example.com/a-?this=that"
624 expected: "Go to <a href=\"http://example.com/a+?this=that\">http://example.com/a+?this=that</a> or <a href=\"http://example.com/a-?this=that\">http://example.com/a-?this=that</a>"
625
626 - description: "Autolink URL should autolink URLs with longer paths ending in -"
627 text: "Go to http://example.com/view/slug-url-?foo=bar"
628 expected: "Go to <a href=\"http://example.com/view/slug-url-?foo=bar\">http://example.com/view/slug-url-?foo=bar</a>"
629
aaeb7c2 Add extraction and autolink tests for domains with spaces
Matt Sanford authored
630 - description: "Autolink URL should NOT link URLs with domains beginning in a space"
631 text: "@user Try http:// example.com/path"
632 expected: "@user Try http:// example.com/path"
633
3602846 Add non-breaking space (U+00A0) tests
Matt Sanford authored
634 - description: "Autolink URL should NOT link URLs with domains beginning in a non-breaking space (U+00A0)"
635 text: "@user Try http:// example.com/path"
636 expected: "@user Try http:// example.com/path"
637
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
638 - description: "Autolink URL should link paths containing accented characters"
91506d3 @mzsanford Add test for accented path character in URL: https://github.com/twitt…
mzsanford authored
639 text: "See: http://example.com/café"
fcff01c @mzsanford Spelling correction in accented URL path test
mzsanford authored
640 expected: "See: <a href=\"http://example.com/café\">http://example.com/café</a>"
91506d3 @mzsanford Add test for accented path character in URL: https://github.com/twitt…
mzsanford authored
641
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
642 - description: "Autolink URL should not link URL without protocol"
643 text: "See: www.twitter.com or twitter.com/twitter"
644 expected: "See: www.twitter.com or twitter.com/twitter"
645
29d0a1b @keitaf Add a test to autolink t.co URL followed by punctuation.
keitaf authored
646 - description: "Autolink t.co URL followed by punctuation"
647 text: "See: http://t.co/abcde's page"
648 expected: "See: <a href=\"http://t.co/abcde\">http://t.co/abcde</a>'s page"
649
0bed1d7 @keitaf Add test cases for URLs preceded by $.
keitaf authored
650 - description: "DO NOT autolink URL if preceded by $"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
651 text: "$https://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
652 expected: "$https://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
0bed1d7 @keitaf Add test cases for URLs preceded by $.
keitaf authored
653
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
654 all:
6741760 Make the auto link all test more realistic
Matt Sanford authored
655 - description: "Autolink all does not break on URL with @"
655fdaa @hoverbird Allow hyphens in domain names, except at the beginning. Disallow sin…
hoverbird authored
656 text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
657 expected: "<a href=\"http://www.flickr.com/photos/29674651@N00/4382024406\">http://www.flickr.com/photos/29674651@N00/4382024406</a> if you know what's good for you."
b5f7f2d Add a new conformance tests for http://domain.tld/path&@username
Matt Sanford authored
658
1b2c3be Add autolink test for URL with & but no ?
Matt Sanford authored
659 - description: "Autolink all does not allow & without ?"
660 text: "Check out: http://example.com/test&@chasesechrist"
4a31935 @keitaf Modify a test case with @mention preceded by &.
keitaf authored
661 expected: "Check out: <a href=\"http://example.com/test\">http://example.com/test</a>&@chasesechrist"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored
662
c5ef022 Add an addition XSS test
Matt Sanford authored
663 - description: "Correctly handles URL follower directly by @user"
3ba7c45 Add an auto link test for github issue #9
Matt Sanford authored
664 text: "See: http://example.com/@user"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
665 expected: "See: <a href=\"http://example.com/\">http://example.com/</a>@<a class=\"tweet-url username\" href=\"https://twitter.com/user\">user</a>"
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored
666
13926c1 @bcherry added some more conformance tests for XSS stuff
bcherry authored
667 - description: "Correctly handles URL with an @user followed by trailing /"
668 text: "See: http://example.com/@user/"
669 expected: "See: <a href=\"http://example.com/@user/\">http://example.com/@user/</a>"
670
c7d8497 Add a conformance test for the Ruby XSS-after-@ issues
Matt Sanford authored
671 - description: "Does not allow an XSS after an @"
62627e1 @keitaf Replace invalid gTLD with valid gTLD.
keitaf authored
672 text: "See: http://x.xx.com/@\"style=\"color:pink\"onmouseover=alert(1)//"
673 expected: "See: <a href=\"http://x.xx.com/\">http://x.xx.com/</a>@\"style=\"color:pink\"onmouseover=alert(1)//"
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
674
675 - description: "DO NOT autolink URLs if preceded by # or @"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
676 text: "#https://twitter.com @https://twitter.com"
677 expected: "#https://twitter.com @https://twitter.com"
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
678
679 - description: "Autolink hashtag if followed by . and TLD"
680 text: "#twitter.com #twitter.co.jp"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
681 expected: "<a href=\"https://twitter.com/#!/search?q=%23twitter\" title=\"#twitter\" class=\"tweet-url hashtag\">#twitter</a>.com <a href=\"https://twitter.com/#!/search?q=%23twitter\" title=\"#twitter\" class=\"tweet-url hashtag\">#twitter</a>.co.jp"
f67226d @keitaf Add test cases where hashtag/@mention and URL are overlapped.
keitaf authored
682
683 - description: "Autolink @mention if followed by . and TLD"
684 text: "@twitter.com @twitter.co.jp"
81c84ae Twitter URLs should point to HTTPS now that it is the default.
Jacob Hoffman-Andrews authored
685 expected: "@<a class=\"tweet-url username\" href=\"https://twitter.com/twitter\">twitter</a>.com @<a class=\"tweet-url username\" href=\"https://twitter.com/twitter\">twitter</a>.co.jp"
Something went wrong with that request. Please try again.