blob: 4d89e30707a3c8861a91171a141e8784ceb0d693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Function ported from /includes/header.inc (line 18)
// Ported function has matched behavior.
function getMiniName(name) {
let parts = name.split(" ");
if (parts[0].length > 3 && !parts[0].endsWith("e") && parts[0] !== "Filly" && parts[0] !== "Windy" && parts[1] !== "Brightdawn") {
if (parts[0].includes("/")) {
return parts[0].split("/")[0];
} else {
return parts[0];
}
} else {
return name;
}
}
|