1
0
Fork 0
mirror of https://github.com/dancojocaru2000/foxbank.git synced 2025-02-23 18:59:34 +02:00
foxbank/server/foxbank_server/utils/string.py
Dan Cojocaru f91b6be3a5
Implemented initial account support
Also refatored into package
Also added Swagger/OpenAPI
2021-12-29 10:48:42 +02:00

7 lines
208 B
Python

def str_range_replace(
input: str,
replace_with: str,
range_start: int | None = None,
range_end: int | None = None,
) -> str:
return input[:range_start] + replace_with + input[range_end:]