(tokens: string[])
| 260 | } |
| 261 | |
| 262 | function mergeVersionTokens(tokens: string[]): string[] { |
| 263 | const merged: string[] = [] |
| 264 | |
| 265 | for (let index = 0; index < tokens.length; index += 1) { |
| 266 | const current = tokens[index] |
| 267 | const next = tokens[index + 1] |
| 268 | |
| 269 | if (/^\d{1,2}$/.test(current) && /^\d{1,2}$/.test(next)) { |
| 270 | merged.push(`${current}.${next}`) |
| 271 | index += 1 |
| 272 | continue |
| 273 | } |
| 274 | |
| 275 | merged.push(current) |
| 276 | } |
| 277 | |
| 278 | return merged |
| 279 | } |
| 280 | |
| 281 | function formatModelToken(token: string): string { |
| 282 | const normalized = token.toLowerCase() |
no test coverage detected