Correct SVG regexp

This commit is contained in:
Yuri Papouski 2022-09-09 12:51:55 +00:00
parent d07e440127
commit 313bd4e4c6

View File

@ -8,7 +8,7 @@ export class ImageElementContainer extends ElementContainer {
intrinsicHeight: number = 0; intrinsicHeight: number = 0;
isSVG: boolean; isSVG: boolean;
private static SVG = /\.svg$/i; private static SVG = /\.svg(?:\?.*)?$/i;
private static INLINED_SVG = /^data:image\/svg\+xml/i; private static INLINED_SVG = /^data:image\/svg\+xml/i;
private static IS_FIRE_FOX = /firefox/i.test(navigator?.userAgent); private static IS_FIRE_FOX = /firefox/i.test(navigator?.userAgent);