Commit 7e3c5056 authored by di68kap's avatar di68kap
Browse files

- syntaxtree.parse_tree: bugfix

parent 920e07d4
......@@ -1276,7 +1276,7 @@ def parse_tree(xml_sxpr_json: str) -> Optional[Node]:
"""
if RX_IS_XML.match(xml_sxpr_json):
return parse_xml(xml_sxpr_json)
elif RX_IS_SXPR(xml_sxpr_json):
elif RX_IS_SXPR.match(xml_sxpr_json):
return parse_sxpr(xml_sxpr_json)
elif re.match('\s*', xml_sxpr_json):
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment