Commit 263da479 authored by Mustafa Senol Cosar's avatar Mustafa Senol Cosar

remove non aplha numeric characters

parent bae3d3d5
......@@ -264,6 +264,7 @@ NameSeparationRegexList = [
re.compile("([0-9])([a-zA-Z])"),
re.compile("([a-z])([A-Z])")
]
NonAlphaNumRegex = re.compile(r"\W+")
NamespacesDict = {}
SchemaNamespaceDict = {}
......@@ -6689,6 +6690,7 @@ def generateSimpleTypes(wrt, prefix, simpleTypeDict):
for regex in NameSeparationRegexList:
value = regex.sub(r"\1_\2", value)
value = value.upper()
value = NonAplhaNumRegex.sub("", value)
return value
def validateIdentifier(name):
name = value2Uppercase(name)
......
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