Fix links in a hacky way

This commit is contained in:
Anuken 2019-11-08 21:11:49 -05:00
parent 4f4113d3d1
commit fb15c44383

View File

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