pchCommitMessageCheck::removeComments PHP Méthode

removeComments() protected méthode

Removes all valid comments from a commit messages, as they are not of interest for the content extraction.
protected removeComments ( string $string ) : string
$string string
Résultat string
    protected function removeComments($string)
    {
        return preg_replace('(^#(?: [\\x20-\\x7E]{1,77})?$)m', '', $string);
    }