(id)
| 376 | }); |
| 377 | } |
| 378 | function stripTrailingImageExt(id) { |
| 379 | if (!id || typeof id !== 'string') return id; |
| 380 | return id.replace(/\.(jpe?g|png|gif|webp)$/i, ''); |
| 381 | } |
| 382 | function apiImageIdCandidates(raw) { |
| 383 | var s = String(raw || '').trim(); |
| 384 | if (!s) return []; |
no outgoing calls
no test coverage detected