From 63bf27006bf5f08a43578d31d70034862d07e48b Mon Sep 17 00:00:00 2001 From: Michal Date: Thu, 23 Mar 2023 19:59:07 +0100 Subject: [PATCH] Fix SVG parsing when the closing tags include whitespace (#2012) Allows whitespace to be used in the closing tag. --- src/xml.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xml.tsx b/src/xml.tsx index 74da30fa..cc334d72 100644 --- a/src/xml.tsx +++ b/src/xml.tsx @@ -429,6 +429,7 @@ export function parse(source: string, middleware?: Middleware): JsxAST | null { ); } + allowSpaces(); if (source[i] !== '>') { error('Expected >'); }