(path)
| 7 | const reNumber = /[-+]?(?:\d+\.\d+|\d+\.|\.\d+|\d+)(?:[eE][-]?\d+)?/g; |
| 8 | |
| 9 | function normalizePath(path) { |
| 10 | return path.replace(reNumber, formatNumber); |
| 11 | } |
| 12 | |
| 13 | function formatNumber(s) { |
| 14 | return Math.abs((s = +s) - Math.round(s)) < 1e-6 ? Math.round(s) : s.toFixed(3); |
no outgoing calls
no test coverage detected
searching dependent graphs…