We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dee400 commit 8c1a585Copy full SHA for 8c1a585
pyatlan/model/utils.py
@@ -45,15 +45,13 @@ def to_snake_case(value):
45
return "purpose_atlan_tags"
46
elif value == "mappedClassificationName":
47
return "mapped_atlan_tag_name"
48
-
49
- value = value.replace("URL", "Url").replace("DBT", "Dbt").replace("GDPR", "Gdpr")
50
51
res = [value[0].lower()]
52
- for c in value[1:]:
+ for c in (
+ value.replace("URL", "Url").replace("DBT", "Dbt").replace("GDPR", "Gdpr")[1:]
+ ):
53
if c in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
54
res.append("_")
55
res.append(c.lower())
56
else:
57
res.append(c)
58
59
return "".join(res).replace(" _", "_").replace(" ", "_")
0 commit comments