We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46cd340 + 12a965f commit c0ee072Copy full SHA for c0ee072
1 file changed
src/main.ts
@@ -63,19 +63,17 @@ function getNameAndDescription(mcmeta: any): { name: string; description: string
63
let description = descriptionToDisplayable(mcmeta.pack.description);
64
65
if (!name) {
66
- const splitDescription = description.split("\n");
+ const splitDescription = description.split("<br>");
67
name = splitDescription[0];
68
- description = splitDescription.slice(1).join("\n");
+ description = splitDescription.slice(1).join("<br>");
69
} else {
70
name = sanitizeHtml(name);
71
}
72
73
// strip colour codes from the name, both easier and more readable
74
name = name.replace(/§./g, "");
75
76
- if (!description) {
77
- description = "No description available";
78
- }
+ if (!description) description = "";
79
80
return { name, description };
81
0 commit comments