(href: string)
| 526 | } |
| 527 | |
| 528 | function getReleaseVersionLabel(href: string) { |
| 529 | // Match releases with or without .html extension |
| 530 | let match = href.match(/releases\/(v[\w-]+)(?:\.html)?$/i); |
| 531 | if (!match) { |
| 532 | return null; |
| 533 | } |
| 534 | return match[1].replace(/-/g, '.'); |
| 535 | } |
| 536 | |
| 537 | interface ComponentCardProps extends Omit<CardProps, 'children'> { |
| 538 | name: string; |