Debian Codegraph @

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 http://index-of.es/Android/Professional.Android.2.Application.Development.(Wrox,.2010,.0470565527).pdf
166
167 https://github.com/markdown-it/linkify-it/compare/360b13a733f521a8d4903d3a5e1e46c357e9d3ce...f580766349525150a80a32987bb47c2d592efc33
168
169 https://www.google.com/search?sxsrf=ACYBGNTJFmX-GjNJ8fM-2LCkqyNyxGU1Ng%3A1575534146332&ei=Qr7oXf7rE4rRrgSEgrmoAw&q=clover&oq=clover&gs_l=psy-ab.3..0i67j0l9.2986.3947..4187...0.2..0.281.1366.1j0j5......0....1..gws-wiz.......0i71j35i39j0i131.qWp1nz4IJVA&ved=0ahUKEwj-lP6Iip7mAhWKqIsKHQRBDjUQ4dUDCAs&uact=5
170
171 https://ourworldindata.org/grapher/covid-deaths-days-since-per-million?zoomToSelection=true&time=9..&country=FRA+DEU+ITA+ESP+GBR+USA+CAN
172
173 http://example.com/foo_bar...
174 http://example.com/foo_bar
175
176 http://172.26.142.48/viewerjs/#../0529/slides.pdf
177
178 http://example.com/foo_bar..
179 http://example.com/foo_bar
180
181 http://example.com/foo_bar?p=10.
182 http://example.com/foo_bar?p=10
183
184 https://www.google.ru/maps/@59.9393895,30.3165389,15z?hl=ru
185
186 https://www.google.com/maps/place/New+York,+NY,+USA/@40.702271,-73.9968471,11z/data=!4m2!3m1!1s0x89c24fa5d33f083b:0xc80b8f06e177fe62?hl=en
187
188 https://www.google.com/analytics/web/?hl=ru&pli=1#report/visitors-overview/a26895874w20458057p96934174/
189
190 http://business.timesonline.co.uk/article/0,,9065-2473189,00.html
191
192 https://google.com/mail/u/0/#label/!!!Today/15c9b8193da01e65
193
194 http://example.com/123!
195 http://example.com/123
196
197 http://example.com/123!!!
198 http://example.com/123
199
200 http://example.com/foo--bar
201
202 See http://example.com/123; Example link.
203 http://example.com/123
204
205 http://example.com/123;123
206
207 % some sites have links with trailing dashes
208 http://www.bloomberg.com/news/articles/2015-06-26/from-deutsche-bank-to-siemens-what-s-troubling-germany-inc-
209
210 http://example.com/foo-with-trailing-dash-dot-.
211 http://example.com/foo-with-trailing-dash-dot-
212
213 <http://domain.com>
214 http://domain.com
215
216 <http://domain.com>.
217 http://domain.com
218
219 <http://domain.com/foo>
220 http://domain.com/foo
221
222 <http://domain.com/foo>.
223 http://domain.com/foo
224
225 <domain.com>
226 domain.com
227
228 <domain.com>.
229 domain.com
230
231 <domain.com/foo>
232 domain.com/foo
233
234 <[email protected]>
235 [email protected]
236
237 <[email protected]>.
238 [email protected]
239
240 <mailto:[email protected]>
241 mailto:[email protected]
242
243
244 %
245 % Emails
246 %
247
248 test."foo"[email protected]!
249 test."foo"[email protected]
250
251 "[email protected]"
252 [email protected]
253
254 [email protected]
255
256 >>[email protected] % markdown blockquote
257 [email protected]
258
259 mailto:[email protected]
260
261 MAILTO:[email protected]
262
263 mailto:[email protected]
264
265 [email protected]
266
267 [email protected]
268
269 mailto:foo@bar % explicit protocol make it valid
270 mailto:foo@bar
271
272 (foobar [email protected])
273 [email protected]
274
275 ([email protected] foobar)
276 [email protected]
277
278 ([email protected])
279 [email protected]
280
281
282 %
283 % International
284 %
285 http://✪df.ws/123
286
287 http://xn--df-oiy.ws/123
288
289 a.ws
290
291 ➡.ws/䨹
292
293 example.com/䨹
294
295 президент.рф
296
297
298 % Links below provided by diaspora* guys, to make sure regressions will not happen.
299 % Those left here for historic reasons.
300
301 http://www.bürgerentscheid-krankenhäuser.de
302
303 http://www.xn--brgerentscheid-krankenhuser-xkc78d.de
304
305 http://bündnis-für-krankenhäuser.de/wp-content/uploads/2011/11/cropped-logohp.jpg
306
307 http://xn--bndnis-fr-krankenhuser-i5b27cha.de/wp-content/uploads/2011/11/cropped-logohp.jpg
308
309 http://ﻡﻮﻘﻋ.ﻭﺯﺍﺭﺓ-ﺍﻼﺘﺻﺍﻼﺗ.ﻢﺻﺭ/
310
311 http://xn--4gbrim.xn----ymcbaaajlc6dj7bxne2c.xn--wgbh1c/
312
313 %
314 % Others...
315 %
316 |www.google.com/www.google.com/foo|bar % #46, asian vertical pipes
317 www.google.com/www.google.com/foo
318
319 |[email protected]|bar
320 [email protected]
321
322 |http://google.com|bar
323 http://google.com
324
325 %
326 % Domains with multiple dashes
327 %
328
329 https://5b0ee223b312746c1659db3f--thelounge-chat.netlify.com/docs/
330
331 www.a--b.com
332
333 www.c--u.com
334
335 http://a---b.com/