(self, name)
return re.sub(pattern, '', name)
Trims suffix of job names if they match -(\\d{4,10}$)
Trims suffix of job names if they match -(\\d{4,10}$)
Trims suffix of job names if they match - ( \\ d { 4 10 } $ )
def _trim_job_tag(self, name):
        """
        Trims suffix of job names if they match -(\\d{4,10}$)
        """
        pattern = r"(-\d{4,10}$)"
        return re.sub(pattern, '', name)
def _trim_job_tag ( self , name ) : pattern = r"(-\d{4,10}$)" return re . sub ( pattern , '' , name )