mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2024-11-15 15:00:47 +00:00
11 lines
319 B
Python
11 lines
319 B
Python
def remove_prefix(input_string, prefix):
|
|
if prefix and input_string.startswith(prefix):
|
|
return input_string[len(prefix) :]
|
|
return input_string
|
|
|
|
|
|
def remove_suffix(input_string, suffix):
|
|
if suffix and input_string.endswith(suffix):
|
|
return input_string[: -len(suffix)]
|
|
return input_string
|