abstract compensator string manipulation
This commit is contained in:
@ -12,3 +12,6 @@ def is_float(element: str) -> bool:
|
||||
return True
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
def camel_to_snake(camel_string: str) -> str:
|
||||
return re.sub(r'(?<!^)(?=[A-Z])', '_', camel_string).lower()
|
||||
|
Reference in New Issue
Block a user