Galerie und tage

This commit is contained in:
2021-11-23 17:56:26 +01:00
parent ff35366279
commit 5f873bee89
4693 changed files with 149659 additions and 301447 deletions

View File

@@ -96,7 +96,8 @@ exports.fn = function(item, params) {
matchNew = elem.match(/new/);
// if attribute value matches regNumericValues
if (match) {
if(match){
// round it to the fixed precision
num = +(+match[1]).toFixed(params.floatPrecision),
units = match[3] || '';
@@ -121,12 +122,13 @@ exports.fn = function(item, params) {
}
roundedListArr.push(num+units);
}
// if attribute value is "new"(only enable-background).
else if (matchNew) {
else if(matchNew){
roundedListArr.push('new');
} else if (elem) {
roundedListArr.push(elem);
}
});