/**
 * Whether the URL points at an SVG asset (for mask-based tinting).
 */
export function isSvgImageUrl(url: string | null | undefined): boolean {
    if (!url) {
        return false;
    }

    const path = url.split(/[?#]/)[0] ?? '';

    return path.toLowerCase().endsWith('.svg');
}
