Use ## for comments, just in case

This commit is contained in:
Anuken
2019-11-08 14:55:32 -05:00
parent e9f9194f73
commit 505f802e20
2 changed files with 3 additions and 2 deletions

View File

@@ -341,7 +341,8 @@ public class ContentParser{
if(contentTypes.isEmpty()){
init();
}
json = json.replaceAll("#.*?\n","\n");
//add comments starting with #
json = json.replaceAll("##.*?\n","\n");
JsonValue value = parser.fromJson(null, json);
if(!parsers.containsKey(type)){