(unit: string)
| 40 | } |
| 41 | |
| 42 | function icuUnitToEcma(unit: string): ExtendedNumberFormatOptions['unit'] { |
| 43 | return unit.replace(/^(.*?)-/, '') as ExtendedNumberFormatOptions['unit'] |
| 44 | } |
| 45 | |
| 46 | const FRACTION_PRECISION_REGEX = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g |
| 47 | const SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\+|#+)?[rs]?$/g |
no outgoing calls
no test coverage detected