Skip to content

Commit ea08b81

Browse files
jgmkevinbackhouse
authored andcommitted
Add new pathological test for pattern "![[]()"*n.
This was formerly quadratic.
1 parent ece074c commit ea08b81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/pathological_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def badhash(ref):
6363
"pattern [ (]( repeated":
6464
(("[ (](" * 80000),
6565
re.compile("(\[ \(\]\(){80000}")),
66+
"pattern ![[]() repeated":
67+
("![[]()" * 160000,
68+
re.compile("(!\[<a href=\"\"></a>){160000}")),
6669
"hard link/emph case":
6770
("**x [a*b**c*](d)",
6871
re.compile("\\*\\*x <a href=\"d\">a<em>b\\*\\*c</em></a>")),

0 commit comments

Comments
 (0)