sbd-npm 1.3.85 → 1.3.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +4 -0
package/package.json
CHANGED
package/util.js
CHANGED
@@ -2108,6 +2108,9 @@ const Util = {
|
|
2108
2108
|
case "%m/%d":
|
2109
2109
|
seconds_format = month + "/" + day;
|
2110
2110
|
break;
|
2111
|
+
case "%m-%d":
|
2112
|
+
seconds_format = month + "-" + day;
|
2113
|
+
break;
|
2111
2114
|
case "%Y":
|
2112
2115
|
seconds_format = year;
|
2113
2116
|
break;
|
@@ -3079,6 +3082,7 @@ const Util = {
|
|
3079
3082
|
rate_val = -rate_val
|
3080
3083
|
}
|
3081
3084
|
}
|
3085
|
+
rate_val = rate_val === 0 ? "0.00" : Util.to_float(rate_val, 2);
|
3082
3086
|
return "<b title='" + (year_price + " - " + price) + "' class='" + cls + "'>" + plus_sign + rate_val + "%</b>";
|
3083
3087
|
},
|
3084
3088
|
|