mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-18 16:26:26 +01:00
Update StoreExtensionDetailsItem.java
This commit is contained in:
parent
4e3fdda5a9
commit
87ef847796
@ -65,10 +65,10 @@ public class StoreExtensionDetailsItem implements ContentItem {
|
||||
contentBuilder.append("Warning: this extension has been marked unstable!\n\n");
|
||||
}
|
||||
|
||||
contentBuilder.append("<div>"
|
||||
contentBuilder.append("--startdiv--")
|
||||
.append("\n*Screenshot: *").append("\n")
|
||||
.append("--img:").append(gExtensionStore.getRepository().getResourceUrl("store", "extensions", storeExtension.getTitle(), "screenshot.png"))
|
||||
.append("</div>");
|
||||
.append(" --enddiv--");
|
||||
|
||||
return contentBuilder.toString();
|
||||
}
|
||||
@ -108,6 +108,8 @@ public class StoreExtensionDetailsItem implements ContentItem {
|
||||
line = line.replaceAll("\\*([^*]*)\\*", "<b>$1</b>")
|
||||
.replaceAll("_([^_<>]*)_", "<i>$1</i>")
|
||||
.replaceAll("(^| |>)@([^ <>]*)($| |<)", "$1<u>$2</u>$3")
|
||||
.replaceAll("--startdiv--", "<div>")
|
||||
.replaceAll("--enddiv--", "</div>")
|
||||
.replaceAll("--img:([^ ]*)", "<img src=\"$1\" alt=\"extension screenshot\" onerror=\"this.parentNode.remove()\">")
|
||||
.replaceAll("--url:([^-]*)-(https?:[^ ]*)",
|
||||
String.format("<a href=\"#\" onClick=\"%s.openUrl("$2")\">$1</a>", id));
|
||||
|
Loading…
Reference in New Issue
Block a user