easy3wui 1.5.40-beta1 → 1.5.40-beta2
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.
|
@@ -493,7 +493,11 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
493
493
|
var strText = text;
|
|
494
494
|
if (text || text === 0 || isNaN(text)) {
|
|
495
495
|
if (typeof text === 'string') {
|
|
496
|
-
|
|
496
|
+
if (/^\d+(\.\d+)?$/.test(text)) {
|
|
497
|
+
strText = (0, _numeral2['default'])(text).format('0,0.00');
|
|
498
|
+
} else {
|
|
499
|
+
strText = text;
|
|
500
|
+
}
|
|
497
501
|
} else if (typeof text === 'number') {
|
|
498
502
|
if (Number.isInfinite(text) || isNaN(NaN)) {
|
|
499
503
|
strText = text;
|