mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-14 03:49:13 +07:00
Fix links in a hacky way
This commit is contained in:
parent
4f4113d3d1
commit
fb15c44383
@ -341,8 +341,9 @@ public class ContentParser{
|
|||||||
if(contentTypes.isEmpty()){
|
if(contentTypes.isEmpty()){
|
||||||
init();
|
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);
|
JsonValue value = parser.fromJson(null, json);
|
||||||
if(!parsers.containsKey(type)){
|
if(!parsers.containsKey(type)){
|
||||||
|
Loading…
Reference in New Issue
Block a user