nosinovacao / name-sdk

A dependencies management library designed to expose and access dependencies information.
BSD 3-Clause "New" or "Revised" License
14 stars 4 forks source link

Tab character before comments breaks the dependencies file parser #10

Closed Symbianx closed 7 years ago

Symbianx commented 7 years ago

If you set a '\t' character before a comment in the dependencies.json file, the parser will fail to recognize the line as a comment and will fail to load the file.

Changes:

In the dependencies file parser, when removing the comments from the file, instead of checking for lines starting with ' ', all white characters (except '\n') should be checked.