Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Error on parsing /** ... **/ notations #4

Open
zlocate opened this issue Aug 21, 2019 · 0 comments
Open

Error on parsing /** ... **/ notations #4

zlocate opened this issue Aug 21, 2019 · 0 comments

Comments

@zlocate
Copy link
Contributor

zlocate commented Aug 21, 2019

Single-line comments without spaces at // e.g //Some comment here breaks app at getting element from array by index but doesn't check thats matches returns array and length of array >= 3

Some details:

sol-comments-parser/src/index.js:140
        outputFunctions.set(matched[2], proceedParse(matched[1]));
                                   ^
TypeError: Cannot read property '2' of null
    at rawComments.forEach (sol-comments-parser/src/index.js:140:36)

Maybe add type-checking? e.g Array.isArray(matched) && matched.length >= 3

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