pchCommitMessageCheck::removeComments PHP 메소드

removeComments() 보호된 메소드

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