leaf_focus/report/processing/normalise.py
def remove_prefix(self, value: str, prefixes: list[str]) -> str:
        """Remove the first matching prefix from the value."""
        if not value:
            return ""
        for prefix in prefixes:
            if value.startswith(prefix):
                match_len = len(prefix)
                return value[match_len:]
        return value
Remove the first matching prefix from the value.
Remove the first matching prefix from the value.
Remove the first matching prefix from the value .
def remove_prefix(self, value: str, prefixes: list[str]) -> str:
        if not value:
            return ""
        for prefix in prefixes:
            if value.startswith(prefix):
                match_len = len(prefix)
                return value[match_len:]
        return value
def remove_prefix ( self , value : str , prefixes : list [ str ] ) -> str : if not value : return "" for prefix in prefixes : if value . startswith ( prefix ) : match_len = len ( prefix ) return value [ match_len : ] return value
Remove the first matching prefix from the value.
Remove the first matching prefix from the value .
"""Remove the first matching prefix from the value."""
self
value
str
prefixes
list[str]