(value)
| 83 | |
| 84 | // Converts IPs from '10.244.253.4' to '010.244.253.004' format. |
| 85 | export function ipToPaddedString(value) { |
| 86 | return value.match(/\d+/g).map(padToThreeDigits).join('.'); |
| 87 | } |
| 88 | |
| 89 | // Doing the manual parsing because `duration.humanize()` would sometimes round up the period, |
| 90 | // while we always want a rounded down value for consistency with other values sent by backend. |
no outgoing calls
no test coverage detected
searching dependent graphs…