diff --git a/packages/excalidraw/element/image.ts b/packages/excalidraw/element/image.ts index 1f08b62b9026..32644b64d1b0 100644 --- a/packages/excalidraw/element/image.ts +++ b/packages/excalidraw/element/image.ts @@ -124,7 +124,7 @@ export const normalizeSVG = (SVGString: string) => { height = height || "50"; if (viewBox) { - const match = viewBox.match( //zsviczian + const match = viewBox.match( /\d+ +\d+ +(\d+(?:\.\d+)?) +(\d+(?:\.\d+)?)/, ); if (match) {