@pepperi-addons/ngx-lib 0.4.1-beta.20 → 0.4.1-beta.21
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.
|
@@ -928,13 +928,13 @@ class PepUtilitiesService {
|
|
|
928
928
|
// If the decimal separator is ',' change it to '.'
|
|
929
929
|
if (value?.length > 0) {
|
|
930
930
|
value = this.changeDecimalSeperator(value);
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
931
|
+
//if the decimal seperator is '.' than the thoussnd seperator is ',' else the thousand seperator is '.'
|
|
932
|
+
if (this.getDecimalSeparator() === '.') {
|
|
933
|
+
value = value.replace(',', '');
|
|
934
|
+
}
|
|
935
|
+
else {
|
|
936
|
+
value = value.replace('.', '');
|
|
937
|
+
}
|
|
938
938
|
}
|
|
939
939
|
return coerceNumberProperty(value, fallbackValue);
|
|
940
940
|
}
|