Explorar o código

Fix removal of 'uax:' namespaces from elements

Matthijs ten Berge %!s(int64=6) %!d(string=hai) anos
pai
achega
c5d730af29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/nodeset_compiler/nodeset.py

+ 1 - 1
tools/nodeset_compiler/nodeset.py

@@ -205,7 +205,7 @@ class NodeSet(object):
             fileContent = fileContent.decode("utf-8")
 
         # Remove the uax namespace from tags. UaModeler adds this namespace to some elements
-        fileContent = re.sub(r"<([/]?)uax:(\w+)([/]?)>", "<\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: