remove_prefix
faststream.cli.utils.parser.remove_prefix #
Removes a prefix from a given text.
Python 3.8 compatibility function
PARAMETER | DESCRIPTION |
---|---|
text | The text from which the prefix will be removed. TYPE: |
prefix | The prefix to be removed from the text. TYPE: |
RETURNS | DESCRIPTION |
---|---|
str | The text with the prefix removed. If the text does not start with the prefix, the original text is returned. TYPE: |