Skip to content

Commit

Permalink
Fix SVG parsing when the closing tags include whitespace (#2012)
Browse files Browse the repository at this point in the history
Allows whitespace to be used in the closing tag.
  • Loading branch information
michaeljscript authored Mar 23, 2023
1 parent 5cfa4df commit 63bf270
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ export function parse(source: string, middleware?: Middleware): JsxAST | null {
);
}

allowSpaces();
if (source[i] !== '>') {
error('Expected >');
}
Expand Down

0 comments on commit 63bf270

Please sign in to comment.