Skip to content

Commit 478195c

Browse files
committed
Add pathological test for commonmark#285.
1 parent 07a84ee commit 478195c

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
@@ -48,6 +48,9 @@
4848
"link openers and emph closers":
4949
(("[ a_" * 50000),
5050
re.compile("(\[ a_){50000}")),
51+
"pattern [ (]( repeated":
52+
(("[ (](" * 80000),
53+
re.compile("(\[ \(\]\(){80000}")),
5154
"hard link/emph case":
5255
("**x [a*b**c*](d)",
5356
re.compile("\\*\\*x <a href=\"d\">a<em>b\\*\\*c</em></a>")),

0 commit comments

Comments
 (0)