Allow a number of language codes in itunes

This commit is contained in:
Daniel Odendahl Jr
2018-02-22 20:10:54 +00:00
parent 4d9c5515b4
commit 1fc3ee9b66
3 changed files with 13 additions and 7 deletions
+4
View File
@@ -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, '')