(path: string)
| 111 | } |
| 112 | |
| 113 | export function getImageLookupKeys(path: string): string[] { |
| 114 | const keys: string[] = []; |
| 115 | |
| 116 | for (const suffix of getImagePathLookupSuffixes(path)) { |
| 117 | keys.push(suffix); |
| 118 | |
| 119 | const lowerSuffix = suffix.toLowerCase(); |
| 120 | if (lowerSuffix !== suffix) { |
| 121 | keys.push(lowerSuffix); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | return keys; |
| 126 | } |
| 127 | |
| 128 | export function buildImageUrl(imageUrlBase: string, imageName: string): UrlCandidate { |
| 129 | let normalizedName = normalizeImagePath(imageName); |
no test coverage detected