Skip to content

relizy / stripGitComments

Function: stripGitComments() ​

stripGitComments(message, commentChar?): string

Defined in: src/core/commitlint/message.ts:23

Remove what git strips from a message edited in the editor: the comment lines and everything after the scissors line of git commit --verbose.

Parameters ​

message ​

string

commentChar? ​

string = '#'

Returns ​

string

Released under the MIT License.