mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 08:22:23 +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] !== '>') {
|
if (source[i] !== '>') {
|
||||||
error('Expected >');
|
error('Expected >');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user