Skip to content

Commit

Permalink
Add Asian sentence ending chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Aug 24, 2021
1 parent c886574 commit 2d9c8a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
var (
// List of valid sentence ending.
// A sentence can be inside parenthesis, and therefore ends with parenthesis.
lastChars = []string{".", "?", "!", ".)", "?)", "!)", specialReplacer}
lastChars = []string{".", "?", "!", ".)", "?)", "!)", "。", "?", "!", "。)", "?)", "!)", specialReplacer}

// Abbreviations to exclude from capital letters check.
abbreviations = []string{"i.e.", "i. e.", "e.g.", "e. g.", "etc."}
Expand Down
5 changes: 5 additions & 0 deletions testdata/check/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ func NonLatin() string {
return "привет, мир"
}

// Asian period [PASS]。
func Asian() {
return "日本語"
}

// Comment. (Parenthesis [PASS].)
func Parenthesis() string {
return "привет, мир"
Expand Down

0 comments on commit 2d9c8a6

Please sign in to comment.