(href: string)
| 575 | } |
| 576 | |
| 577 | function getReleaseVersionLabel(href: string) { |
| 578 | // Match releases with or without .html extension |
| 579 | let match = href.match(/releases\/(v[\w-]+)(?:\.html)?$/i); |
| 580 | if (!match) { |
| 581 | return null; |
| 582 | } |
| 583 | return match[1].replace(/-/g, '.'); |
| 584 | } |
| 585 | |
| 586 | interface ComponentCardProps extends Omit<CardProps, 'children'> { |
| 587 | name: string; |