Skip to content

Commit

Permalink
refactor(tools): fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GoetzGoerisch committed Feb 21, 2024
1 parent 02309bd commit 1b3ee93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generate_bsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
fileContent = fileContent.decode("utf-8")

# Remove the uax namespace from tags. UaModeler adds this namespace to some elements
fileContent = re.sub(r"<([/]?)uax:(.+?)([/]?)>", "<\g<1>\g<2>\g<3>>", fileContent)
fileContent = re.sub(r"<([/]?)uax:(.+?)([/]?)>", "<\\g<1>\\g<2>\\g<3>>", fileContent)

nodesets = dom.parseString(fileContent).getElementsByTagName("UANodeSet")
if len(nodesets) == 0 or len(nodesets) > 1:
Expand Down

0 comments on commit 1b3ee93

Please sign in to comment.