mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Allow a number of language codes in itunes
This commit is contained in:
@@ -51,6 +51,10 @@ class Util {
|
||||
return arr;
|
||||
}
|
||||
|
||||
static formatNumber(number, dollar = false) {
|
||||
return `${dollar ? '$' : ''}${number.toLocaleString('en-US', { maximumFractionDigits: 2 })}`;
|
||||
}
|
||||
|
||||
static cleanXML(text) {
|
||||
return text
|
||||
.replace(/<br \/>/g, '')
|
||||
|
||||
Reference in New Issue
Block a user