@leafer/path 1.0.0-rc.23 → 1.0.0-rc.25

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/path",
3
- "version": "1.0.0-rc.23",
3
+ "version": "1.0.0-rc.25",
4
4
  "description": "@leafer/path",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "1.0.0-rc.23",
26
- "@leafer/debug": "1.0.0-rc.23"
25
+ "@leafer/math": "1.0.0-rc.25",
26
+ "@leafer/debug": "1.0.0-rc.25"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.23"
29
+ "@leafer/interface": "1.0.0-rc.25"
30
30
  }
31
31
  }
@@ -61,12 +61,12 @@ export const PathConvert = {
61
61
  if (StringNumberMap[char]) {
62
62
 
63
63
  if (char === '.') {
64
+ if (current.dot) { pushData(data, num); num = '' } // .375.375
64
65
  current.dot++
65
- if (current.dot > 1) {
66
- pushData(data, num); num = '' // .375.375
67
- }
68
66
  }
69
67
 
68
+ if (num === '0' && char !== '.') { pushData(data, num); num = '' } // 00 01
69
+
70
70
  num += char
71
71
 
72
72
  } else if (Command[char]) {