Failure inducing input:
[hi.](something.com)
Check for square brackets before adding the period into periodList.
|
if(nextPeriodIndex != -1) { |
|
periodList.add(nextPeriodIndex); |
|
currentIndex = nextPeriodIndex; |
|
} else { |
|
break; |
|
} |

In the output, "hi." appeared as a link but was supposed to be the link text.
Failure inducing input:
[hi.](something.com)Check for square brackets before adding the period into periodList.
markdown-parse/MarkdownParse.java
Lines 17 to 22 in 04f7eae
In the output, "hi." appeared as a link but was supposed to be the link text.