hjson / hjson-js

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

Strings containing "#" will be treated as comments #65

Open QianSeNianHua opened 1 week ago

QianSeNianHua commented 1 week ago

version

hjson: 3.2.2

problem

{
  "QWCRM_URL": "https://www.xxx.com/qwcrm/#/", // There's something wrong here
}

Since the string contains "#", it is treated as a comment.

trobro commented 5 days ago

I cannot reproduce this problem in hjson-js. I suspect this is instead a problem with the syntax definition for the editor you are using.