Fix links in a hacky way
This commit is contained in:
@@ -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)){
|
||||
|
||||
Reference in New Issue
Block a user