From 7e06821edfc2900f7e9084b9ae8317bd19a5409d Mon Sep 17 00:00:00 2001 From: andev0x Date: Sun, 23 Nov 2025 00:30:50 +0700 Subject: [PATCH] feat(formatter): turn off capitalize the first letter --- internal/formatter/formatter.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/formatter/formatter.go b/internal/formatter/formatter.go index a60bb40..ee1ce6d 100644 --- a/internal/formatter/formatter.go +++ b/internal/formatter/formatter.go @@ -3,7 +3,6 @@ package formatter import ( "fmt" "strings" - "unicode" ) // Formatter is responsible for applying final formatting to commit messages @@ -17,11 +16,11 @@ func NewFormatter() *Formatter { // FormatMessage applies formatting rules to the commit message func (f *Formatter) FormatMessage(msg string, isMajor bool) string { // Capitalize the first letter - if len(msg) > 0 { + /* if len(msg) > 0 { r := []rune(msg) r[0] = unicode.ToUpper(r[0]) msg = string(r) - } + } */ // Remove redundant phrases msg = strings.ReplaceAll(msg, "add add new", "add new")