use // for comments
This commit is contained in:
@@ -341,8 +341,8 @@ public class ContentParser{
|
|||||||
if(contentTypes.isEmpty()){
|
if(contentTypes.isEmpty()){
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
//add comments starting with #
|
//add comments starting with ##
|
||||||
json = json.replaceAll("##.*?\n","\n");
|
json = json.replaceAll("//.*?\n","\n");
|
||||||
|
|
||||||
JsonValue value = parser.fromJson(null, json);
|
JsonValue value = parser.fromJson(null, json);
|
||||||
if(!parsers.containsKey(type)){
|
if(!parsers.containsKey(type)){
|
||||||
|
|||||||
Reference in New Issue
Block a user