snyk / snyk-paket-parser

Other
3 stars 4 forks source link

fix: remove byte order mark before parsing #30

Closed Kirill89 closed 5 years ago

Kirill89 commented 5 years ago

What does this PR do?

On windows machines first symbol of the file sometimes is special "ZERO WIDTH NO-BREAK SPACE".

Remove it before continue processing because it could be counted as a space in countIndents.

orsagie commented 5 years ago

can you add a test file that has bom delimiters, too?

Kirill89 commented 5 years ago

can you add a test file that has bom delimiters, too?

bom by definition could be added only at the beginning of a file.

snyksec commented 5 years ago

:tada: This PR is included in version 1.4.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: