Fix SVG parsing when the closing tags include whitespace (#2012)

Allows whitespace to be used in the closing tag.
This commit is contained in:
Michal
2023-03-23 19:59:07 +01:00
committed by GitHub
parent 5cfa4dfc6a
commit 63bf27006b
+1
View File
@@ -429,6 +429,7 @@ export function parse(source: string, middleware?: Middleware): JsxAST | null {
);
}
allowSpaces();
if (source[i] !== '>') {
error('Expected >');
}