Merge pull request #13 from kt3k/feature/fix-preview

Fix preview string of commit subject
This commit is contained in:
tsuyoshi wada 2018-03-15 11:44:13 +09:00 committed by GitHub
commit e9d40da0f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ func (f *CommitMessageFormat) PatternMapString() string {
// Formats
var (
fmtTypeScopeSubject = &CommitMessageFormat{
Preview: "feat(core) Add new feature",
Preview: "feat(core): Add new feature",
Display: "<type>(<scope>): <subject>",
Pattern: `^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$`,
PatternMaps: []string{"Type", "Scope", "Subject"},