hjson / hjson-js

Hjson for JavaScript
https://hjson.github.io/
MIT License
417 stars 49 forks source link

Bad string containing newline at line 4,230 #49

Closed uplusion23 closed 4 years ago

uplusion23 commented 4 years ago

I'm attempting to use Hjson web module to parse some Hjson files a game uses for it's mod metadata, and even after updating to 3.2.1, still getting this error. The Java version can parse this just fine but getting some issues on my end.

{
  "name": "Opore Mod",
  "author": "amione",
  "description": "Adds multiple vaults, drills, duos, spectres, walls, forges, extractors, conveyors, liquids, mech units, mech pads. This is actually my first mod, hope you like it because i had alot of issues while making this.
NOTE: Update 30+: Some items will be broken because they cannot be done any other way, like an example the arc. It shoots too slow, but it cannot be faster (maybe anuke will fix the way we edit power turrets some day)

Credits
> Everyone that reports a bug/unbalanced item will be added to the special thanks list (if you dont want to be added just say 'dont add me on the credits list')

> Coding - amione

> Map making - amione, Félix Córvus#3546, Pusheen#3121

> Descriptions and names - amione, LordPotaynut

> Sprites - anuke, amione

> Helped in making of mod on discord - simon#8156, Violet#5020, Nope.avi#4037, HNU Founder.lua#5046

> Feedback on discord - wewemaster#8854, omegaDM#0155, Mwister Cinnabar owo#2702

> Feedback on steam - Tibault, 月之殇, the_red_soul, LordPotaynut, Dockedreaper61",
  "version": "43"
}
uplusion23 commented 4 years ago

I didn't see the lack of '''