pchCommitMessageCheck::removeComments PHP Method

removeComments() protected method

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
return string
    protected function removeComments($string)
    {
        return preg_replace('(^#(?: [\\x20-\\x7E]{1,77})?$)m', '', $string);
    }