(url: string)
| 235 | } |
| 236 | |
| 237 | function extractPackageNameFromUrl(url: string): string | null { |
| 238 | const extractedSegment = url.match(/\/api\/(.*)\/.*#?/); |
| 239 | if (extractedSegment == null) { |
| 240 | return null; |
| 241 | } |
| 242 | return `<code>@angular/${extractedSegment[1]}</code>`; |
| 243 | } |