(url: string, contentType?: string)
| 118 | |
| 119 | // Check if URL is an ICO file |
| 120 | function isIcoFile(url: string, contentType?: string): boolean { |
| 121 | return ( |
| 122 | url.toLowerCase().endsWith('.ico') || |
| 123 | contentType === 'image/x-icon' || |
| 124 | contentType === 'image/vnd.microsoft.icon' |
| 125 | ); |
| 126 | } |
| 127 | function isSvgFile(url: string, contentType?: string): boolean { |
| 128 | return url.toLowerCase().endsWith('.svg') || contentType === 'image/svg+xml'; |
| 129 | } |
no outgoing calls
no test coverage detected