Skip to content

fix: count summary length in Unicode code points - #244

Open
dajiaohuang wants to merge 1 commit into
antham:masterfrom
dajiaohuang:fix/unicode-summary-length
Open

dajiaohuang wants to merge 1 commit into
antham:masterfrom
dajiaohuang:fix/unicode-summary-length

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

The configured summary limit is described as a character count, but the implementation used Go's byte length, rejecting short non-ASCII summaries. Count Unicode code points in the first line and add a synthetic regression test.

Validation

  • From gommit/: go test gommit.go unicode_summary_test.go — passed.
  • git diff --check — passed.

The focused test uses only a synthetic message; no real commit history or hooks were used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant