Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diet parser has out-of-bounds error #75

Closed
schveiguy opened this issue Dec 3, 2019 · 0 comments
Closed

diet parser has out-of-bounds error #75

schveiguy opened this issue Dec 3, 2019 · 0 comments

Comments

@schveiguy
Copy link
Contributor

Out of bounds error here:

if(str[i] == it) {

Trigged by forgetting to finish a line! for example:

a(href="../",onclick

Easy fix, just check in the outer if statement that i is still less than str.length.

I'll do a PR when I get a chance.

schveiguy added a commit to schveiguy/diet-ng that referenced this issue Mar 4, 2020
s-ludwig added a commit that referenced this issue Mar 5, 2020
Fix #75. Handles cases where a line ends before seeing a break character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant