mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-17 21:40:31 +00:00
[+] Kebab-case to camel-case converter
Signed-off-by: Charles Le Maux <charles.le-maux@epitech.eu>
This commit is contained in:
parent
828010de25
commit
8baf5d805e
@ -71,5 +71,10 @@ def log_error(error_type: str, error_message: str):
|
|||||||
logger.error(f'{error_type}: {error_message}')
|
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__":
|
if __name__ == "__main__":
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user