blob: 7b2afcfc50b916f052ff7c9cfb43f23c222929fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
Should not throw exception on invalid chars in URL (`*` not allowed in path) [malformed URI]
.
[foo](<%test>)
.
<p><a href="%25test">foo</a></p>
.
Should not throw exception on broken utf-8 sequence in URL [malformed URI]
.
[foo](%C3)
.
<p><a href="%C3">foo</a></p>
.
Should not throw exception on broken utf-16 surrogates sequence in URL [malformed URI]
.
[foo](�)
.
<p><a href="&#xD800;">foo</a></p>
.
Should not hang comments regexp
.
foo <!--- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ->
foo <!------------------------------------------------------------------->
.
<p>foo <!— xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -></p>
<p>foo <!-------------------------------------------------------------------></p>
.
Should not hang cdata regexp
.
foo <![CDATA[ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ]>
.
<p>foo <![CDATA[ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ]></p>
.
|