mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-25 03:53:31 +00:00
Fix SVG parsing when the closing tags include whitespace (#2012)
Allows whitespace to be used in the closing tag.
This commit is contained in:
@@ -429,6 +429,7 @@ export function parse(source: string, middleware?: Middleware): JsxAST | null {
|
||||
);
|
||||
}
|
||||
|
||||
allowSpaces();
|
||||
if (source[i] !== '>') {
|
||||
error('Expected >');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user