Strips ` (Legacy)` / ` V2` suffixes so the display uses the natural name.
(name: string)
| 37 | |
| 38 | /** Strips ` (Legacy)` / ` V2` suffixes so the display uses the natural name. */ |
| 39 | function normalizeDisplayName(name: string): string { |
| 40 | return name |
| 41 | .replace(/\s*\(legacy\)\s*$/i, '') |
| 42 | .replace(/\s+v\d+(\.\d+)*\s*$/i, '') |
| 43 | .trim() |
| 44 | } |
| 45 | |
| 46 | let cachedMatcher: IntegrationMatcher | null = null |
| 47 | let cachedList: readonly IntegrationDescriptor[] | null = null |