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

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

@zlocate

Description

@zlocate

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions