(input: string)
| 1473 | } |
| 1474 | |
| 1475 | const splitStep = (input: string): [string, number | undefined] => { |
| 1476 | const separator = input.indexOf("/") |
| 1477 | if (separator !== -1) { |
| 1478 | const step = input.slice(separator + 1) |
| 1479 | return [input.slice(0, separator), decimalRegex.test(step) ? Number(step) : NaN] |
| 1480 | } |
| 1481 | |
| 1482 | return [input, undefined] |
| 1483 | } |
| 1484 | |
| 1485 | const splitRange = (input: string, aliases?: Record<string, number>): [number, number | undefined] => { |
| 1486 | const separator = input.indexOf("-") |
no test coverage detected