textlint-ja / textlint-rule-max-ten

textlint rule that limit maxinum ten(、) count of sentence.
MIT License
10 stars 5 forks source link

fix README #6

Closed georgeOsdDev closed 4 years ago

georgeOsdDev commented 4 years ago

max = 3 の場合、1文に許可される読点の数は2つとなります。

https://github.com/textlint-ja/textlint-rule-max-ten/blob/master/src/max-ten.js#L94-L97

- if (currentTenCount >= maxLen) {
+ if (currentTenCount > maxLen) {
- `一つの文で"、"を${maxLen}つ以上使用しています`
+ `一つの文で"、"を${maxLen + 1}つ以上使用しています`

するのもよいかと思いましたが、 挙動が変わってしまうのでドキュメントを変更しています。

azu commented 4 years ago

ありがとうございます!