Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Failure when "(" or ")" does not exist in test file. #11

Open
touhouEUROBEAT opened this issue Feb 24, 2022 · 1 comment
Open

Failure when "(" or ")" does not exist in test file. #11

touhouEUROBEAT opened this issue Feb 24, 2022 · 1 comment

Comments

@touhouEUROBEAT
Copy link

When "(" or ")" does not exist in test file, closeParen would continue to increment and causes IndexOutOfBoundException.

@touhouEUROBEAT
Copy link
Author

We fixed it by:

  1. In findCloseParen, return -1 if closeParen >= markdown.length();
  2. getLinks, after line 34, return toReturn if openParen = -1;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant