[+] Kebab-case to camel-case converter

Signed-off-by: Charles Le Maux <charles.le-maux@epitech.eu>
This commit is contained in:
Charles Le Maux 2024-07-09 18:29:38 +01:00
parent 828010de25
commit 8baf5d805e

View File

@ -71,5 +71,10 @@ def log_error(error_type: str, error_message: str):
logger.error(f'{error_type}: {error_message}')
def kebab_to_camel_case(s: str) -> str:
parts = s.split('-')
return parts[0] + ''.join(part.title() for part in parts[1:])
if __name__ == "__main__":
pass