(content: string)
| 182 | |
| 183 | // By convention, action expects version 8 in the format `8.*` instead of `1.8` |
| 184 | function avoidOldNotation(content: string): string { |
| 185 | return content.startsWith('1.') ? content.substring(2) : content; |
| 186 | } |
| 187 | |
| 188 | export function convertVersionToSemver(version: number[] | string) { |
| 189 | // Some distributions may use semver-like notation (12.10.2.1, 12.10.2.1.1) |
no outgoing calls
no test coverage detected