feat: deals filters

This commit is contained in:
2025-09-01 17:54:45 +04:00
parent 93141da22c
commit 57c3ada2fa
8 changed files with 90 additions and 14 deletions

8
utils/strings.py Normal file
View File

@ -0,0 +1,8 @@
import re
from typing import Optional
def camel_to_snake(string: Optional[str]) -> str:
if not string:
return string
return re.sub(r"(?<!^)(?=[A-Z])", "_", string).lower()