Skip to content

Error parsing global.json with encoding utf8 with BOM #185

@petarpetrovt

Description

@petarpetrovt

Description:
Parsing of the global.json fail if its saved with BOM.
Node.js dosen't strip BOM. - issue
Trimming the string should fix the issue.

Task version:
1.7.2

Platform:

  • Ubuntu
  • macOS
  • Windows

Expected behavior:
Parse global.json correctly.

Actual behavior:
Throws Error: Unexpected token  in JSON at position 0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions