Skip to content

Commit 2d9c8a6

Browse files
author
Denis Krivak
committed
Add Asian sentence ending chars.
1 parent c886574 commit 2d9c8a6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616
var (
1717
// List of valid sentence ending.
1818
// A sentence can be inside parenthesis, and therefore ends with parenthesis.
19-
lastChars = []string{".", "?", "!", ".)", "?)", "!)", specialReplacer}
19+
lastChars = []string{".", "?", "!", ".)", "?)", "!)", "。", "?", "!", "。)", "?)", "!)", specialReplacer}
2020

2121
// Abbreviations to exclude from capital letters check.
2222
abbreviations = []string{"i.e.", "i. e.", "e.g.", "e. g.", "etc."}

testdata/check/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ func NonLatin() string {
107107
return "привет, мир"
108108
}
109109

110+
// Asian period [PASS]。
111+
func Asian() {
112+
return "日本語"
113+
}
114+
110115
// Comment. (Parenthesis [PASS].)
111116
func Parenthesis() string {
112117
return "привет, мир"

0 commit comments

Comments
 (0)