去掉英文数量级的空格
This commit is contained in:
parent
ffe51da638
commit
0639db66d4
|
@ -248,10 +248,10 @@ let localTranslating = {
|
|||
},
|
||||
unit: {
|
||||
orbs: tp``,
|
||||
times: tp` times`,
|
||||
seconds: tp` seconds`,
|
||||
point: tp` point`,
|
||||
turns: tp` turns`,
|
||||
times: tp`times`,
|
||||
seconds: tp`seconds`,
|
||||
point: tp`point`,
|
||||
turns: tp`turns`,
|
||||
},
|
||||
word: {
|
||||
comment: tp`(${'content'}) `,
|
||||
|
|
|
@ -230,11 +230,11 @@ function BigNumberToStringLocalise(separators, splitDigits = 3 ) {
|
|||
if (numLevels[i] > 0)
|
||||
outStr += numLevels[i].toString(10) + separators[i];
|
||||
}
|
||||
return outStr;
|
||||
return outStr.trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
Number.prototype.bigNumberToString = BigNumberToStringLocalise(['', 'K ', 'M ', 'G ', 'T ', 'P ', 'E ', 'Z ', 'Y ', 'R ', 'Q '], 3);
|
||||
Number.prototype.bigNumberToString = BigNumberToStringLocalise(['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y', 'R', 'Q'], 3);
|
||||
|
||||
//最多保留N位小数,不留0
|
||||
Number.prototype.keepCounts = function(decimalDigits = 2, plusSign = false) {
|
||||
|
@ -1209,10 +1209,6 @@ function descriptionToHTML(str)
|
|||
function parseSkillDescription(skill) {
|
||||
return descriptionToHTML(skill?.description);
|
||||
}
|
||||
//大数字缩短长度,默认返回本地定义字符串
|
||||
function parseBigNumber(number) {
|
||||
return number.toLocaleString();
|
||||
}
|
||||
//判断是否是转生和超转生
|
||||
function isReincarnated(card) {
|
||||
return card.is8Latent && !card.isUltEvo && (card.evoBaseId || card.evoRootId) != card.id && (card.awakenings.includes(49) ? isReincarnated(Cards[card.evoBaseId]) : true);
|
||||
|
|
Loading…
Reference in New Issue