Debian Codegraph @

linkify-it/test/fixtures/links.txt

raw
1 %
2 % Regular links
3 %
4 My http://example.com site
5 http://example.com
6
7 My http://example.com/ site
8 http://example.com/
9
10 http://example.com/foo_bar/
11
12 http://user:[email protected]:8080
13
14 http://[email protected]
15
16 http://[email protected]:8080
17
18 http://user:[email protected]
19
20 [https](https://www.ibm.com)[mailto](mailto:[email protected]) % should not catch as auth (before @ in big link)
21 https://www.ibm.com
22
23 http://example.com:8080
24
25 http://example.com/?foo=bar
26
27 http://example.com?foo=bar
28
29 http://example.com/#foo=bar
30
31 http://example.com#foo=bar
32
33 http://a.in
34
35 HTTP://GOOGLE.COM
36
37 http://example.invalid % don't restrict root domain when schema exists
38 http://example.invalid
39
40 http://inrgess2 % Allow local domains to end with digit
41 http://inrgess2
42
43 http://999 % ..and start with digit, and have digits only
44 http://999
45
46 http://host-name % local domain with dash
47 http://host-name
48
49 >>example.com % markdown blockquote
50 example.com
51
52 >>http://example.com % markdown blockquote
53 http://example.com
54
55 http://lyricstranslate.com/en/someone-you-നിന്നെ-പോലൊരാള്‍.html % With control character
56 http://lyricstranslate.com/en/someone-you-നിന്നെ-പോലൊരാള്‍.html
57
58 %
59 % localhost (only with protocol allowed)
60 %
61 //localhost
62
63 //test.123
64
65 http://localhost:8000?
66 http://localhost:8000
67
68
69 %
70 % Other protocols
71 %
72 My ssl https://example.com site
73 https://example.com
74
75 My ftp://example.com site
76 ftp://example.com
77
78
79 %
80 % Neutral proto
81 %
82 My ssl //example.com site
83 //example.com
84
85 %
86 % IPs
87 %
88 4.4.4.4
89
90 192.168.1.1/abc
91
92
93 %
94 % Fuzzy
95 %
96 test.example@http://vk.com
97 http://vk.com
98
99 text:http://example.com/
100 http://example.com/
101
102 google.com
103
104 google.com: // no port
105 google.com
106
107 s.l.o.w.io
108
109 a-b.com
110
111 GOOGLE.COM.
112 GOOGLE.COM
113
114 google.xxx // known tld
115 google.xxx
116
117
118 %
119 % Correct termination for . , ! ? [] {} () "" ''
120 %
121 (Scoped http://example.com/foo_bar)
122 http://example.com/foo_bar
123
124 http://example.com/foo_bar_(wiki)
125
126 http://foo.com/blah_blah_[other]
127
128 http://foo.com/blah_blah_{I'm_king}
129
130 http://foo.com/blah_blah_I'm_king
131
132 http://www.kmart.com/bestway-10'-x-30inch-steel-pro-frame-pool/p-004W007538417001P
133
134 http://foo.com/blah_blah_"doublequoted"
135
136 http://foo.com/blah_blah_'singlequoted'
137
138 (Scoped like http://example.com/foo_bar)
139 http://example.com/foo_bar
140
141 [Scoped like http://example.com/foo_bar]
142 http://example.com/foo_bar
143
144 {Scoped like http://example.com/foo_bar}
145 http://example.com/foo_bar
146
147 "Quoted like http://example.com/foo_bar"
148 http://example.com/foo_bar
149
150 'Quoted like http://example.com/foo_bar'
151 http://example.com/foo_bar
152
153 [example.com/foo_bar.jpg)]
154 example.com/foo_bar.jpg
155
156 http://example.com/foo_bar.jpg.
157 http://example.com/foo_bar.jpg
158
159 http://example.com/foo_bar/.
160 http://example.com/foo_bar/
161
162 http://example.com/foo_bar,
163 http://example.com/foo_bar
164
165 https://github.com/markdown-it/linkify-it/compare/360b13a733f521a8d4903d3a5e1e46c357e9d3ce...f580766349525150a80a32987bb47c2d592efc33
166
167 https://www.google.com/search?source=hp&ei=y0QtW7yUGpiq0PEPv5qv8Ag&q=best+sci+fi+books&oq=best+sci&gs_l=psy-ab.3.1.0j0i20i264k1j0j0i131k1j0l6.2035.4079.0.5985.9.8.0.0.0.0.132.797.5j3.8.0....0...1c.1.64.psy-ab..1.8.797.0..35i39k1j0i67k1.0.iug3EHWIyxc
168
169 http://example.com/foo_bar...
170 http://example.com/foo_bar
171
172 http://172.26.142.48/viewerjs/#../0529/slides.pdf
173
174 http://example.com/foo_bar..
175 http://example.com/foo_bar
176
177 http://example.com/foo_bar?p=10.
178 http://example.com/foo_bar?p=10
179
180 https://www.google.ru/maps/@59.9393895,30.3165389,15z?hl=ru
181
182 https://www.google.com/maps/place/New+York,+NY,+USA/@40.702271,-73.9968471,11z/data=!4m2!3m1!1s0x89c24fa5d33f083b:0xc80b8f06e177fe62?hl=en
183
184 https://www.google.com/analytics/web/?hl=ru&pli=1#report/visitors-overview/a26895874w20458057p96934174/
185
186 http://business.timesonline.co.uk/article/0,,9065-2473189,00.html
187
188 http://example.com/123!
189 http://example.com/123
190
191 http://example.com/foo--bar
192
193 % some sites have links with trailing dashes
194 http://www.bloomberg.com/news/articles/2015-06-26/from-deutsche-bank-to-siemens-what-s-troubling-germany-inc-
195
196 http://example.com/foo-with-trailing-dash-dot-.
197 http://example.com/foo-with-trailing-dash-dot-
198
199 <http://domain.com>
200 http://domain.com
201
202 <http://domain.com>.
203 http://domain.com
204
205 <http://domain.com/foo>
206 http://domain.com/foo
207
208 <http://domain.com/foo>.
209 http://domain.com/foo
210
211 <domain.com>
212 domain.com
213
214 <domain.com>.
215 domain.com
216
217 <domain.com/foo>
218 domain.com/foo
219
220 <[email protected]>
221 [email protected]
222
223 <[email protected]>.
224 [email protected]
225
226 <mailto:[email protected]>
227 mailto:[email protected]
228
229
230 %
231 % Emails
232 %
233
234 test."foo"[email protected]!
235 test."foo"[email protected]
236
237 "[email protected]"
238 [email protected]
239
240 [email protected]
241
242 >>[email protected] % markdown blockquote
243 [email protected]
244
245 mailto:[email protected]
246
247 MAILTO:[email protected]
248
249 mailto:[email protected]
250
251 [email protected]
252
253 [email protected]
254
255 mailto:foo@bar % explicit protocol make it valid
256 mailto:foo@bar
257
258 (foobar [email protected])
259 [email protected]
260
261 ([email protected] foobar)
262 [email protected]
263
264 ([email protected])
265 [email protected]
266
267
268 %
269 % International
270 %
271 http://✪df.ws/123
272
273 http://xn--df-oiy.ws/123
274
275 a.ws
276
277 ➡.ws/䨹
278
279 example.com/䨹
280
281 президент.рф
282
283
284 % Links below provided by diaspora* guys, to make sure regressions will not happen.
285 % Those left here for historic reasons.
286
287 http://www.bürgerentscheid-krankenhäuser.de
288
289 http://www.xn--brgerentscheid-krankenhuser-xkc78d.de
290
291 http://bündnis-für-krankenhäuser.de/wp-content/uploads/2011/11/cropped-logohp.jpg
292
293 http://xn--bndnis-fr-krankenhuser-i5b27cha.de/wp-content/uploads/2011/11/cropped-logohp.jpg
294
295 http://ﻡﻮﻘﻋ.ﻭﺯﺍﺭﺓ-ﺍﻼﺘﺻﺍﻼﺗ.ﻢﺻﺭ/
296
297 http://xn--4gbrim.xn----ymcbaaajlc6dj7bxne2c.xn--wgbh1c/
298
299 %
300 % Others...
301 %
302 |www.google.com/www.google.com/foo|bar % #46, asian vertical pipes
303 www.google.com/www.google.com/foo
304
305 |[email protected]|bar
306 [email protected]
307
308 |http://google.com|bar
309 http://google.com
310
311 %
312 % Domains with multiple dashes
313 %
314
315 https://5b0ee223b312746c1659db3f--thelounge-chat.netlify.com/docs/
316
317 www.a--b.com
318
319 www.c--u.com
320
321 http://a---b.com/