leaf_focus/report/processing/normalise.py
def correction_all(self, value: str, category: str):
        """Apply the all the corrections."""
        if not value or not value.strip():
            return ""

        result = value
        for correction in self._corrections:
            if correction.category != category:
                continue
            if not correction.is_regex and correction.find not in result:
                continue
            result = correction.regex.sub(correction.replace, result)

        return result
Apply the all the corrections.
Apply the all the corrections.
Apply the all the corrections .
def correction_all(self, value: str, category: str):
        if not value or not value.strip():
            return ""
        result = value
        for correction in self._corrections:
            if correction.category != category:
                continue
            if not correction.is_regex and correction.find not in result:
                continue
            result = correction.regex.sub(correction.replace, result)
        return result
def correction_all ( self , value : str , category : str ) : if not value or not value . strip ( ) : return "" result = value for correction in self . _corrections : if correction . category != category : continue if not correction . is_regex and correction . find not in result : continue result = correction . regex . sub ( correction . replace , result ) return result
Apply the all the corrections.
Apply the all the corrections .
"""Apply the all the corrections."""
self
value
str
category
str