kitchen-simulator 4.2.2 → 4.2.3

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/es/utils/ruler.js CHANGED
@@ -15,7 +15,7 @@ function formatDistance(value, fixed) {
15
15
  // 2.00 -> 2
16
16
  // 2.50 -> 2.5
17
17
  // 200.00 -> 200
18
- text = text.replace(/\.?0+$/, '');
18
+ text = text.replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
19
19
  return text;
20
20
  }
21
21
  function getUnitString(unit) {
@@ -20,7 +20,7 @@ function formatDistance(value, fixed) {
20
20
  // 2.00 -> 2
21
21
  // 2.50 -> 2.5
22
22
  // 200.00 -> 200
23
- text = text.replace(/\.?0+$/, '');
23
+ text = text.replace(/(\.\d*?)0+$/, '$1').replace(/\.$/, '');
24
24
  return text;
25
25
  }
26
26
  function getUnitString(unit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",