(dir: string)
| 156 | } |
| 157 | |
| 158 | function isImagesNamedDir(dir: string): boolean { |
| 159 | const lower = dir.toLowerCase(); |
| 160 | return lower === 'images' || lower.endsWith('/images'); |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Prefer directories canonically named `images`, and among those the one |