Closed orangain closed 8 years ago
When the second or later sentence in the paragraph contains many tens, the rule reports wrong position in some cases.
$ cat problematic_cases.md 複数のセンテンスがある場合。これでも、columnが、ちゃんと計算、されているはずです。 複数のセンテンスがあって、改行されている場合でも 大丈夫です。これでも、lineとcolumnが、ちゃんと計算、されているはずです。
Reports wrong position.
$ textlint --rule max-ten problematic_cases.md /private/tmp/problematic_cases.md 1:20 error 一つの文で"、"を3つ以上使用しています max-ten 3:25 error 一つの文で"、"を3つ以上使用しています max-ten ✖ 2 problems (2 errors, 0 warnings)
Reports correct position.
$ textlint --rule max-ten problematic_cases.md /private/tmp/problematic_cases.md 1:34 error 一つの文で"、"を3つ以上使用しています max-ten 4:31 error 一つの文で"、"を3つ以上使用しています max-ten ✖ 2 problems (2 errors, 0 warnings)
@orangain Thanks! Nice catch!
publish 2.0.1
Surprised at your quick merge and release. Thanks :smile:
Problem
When the second or later sentence in the paragraph contains many tens, the rule reports wrong position in some cases.
Before
Reports wrong position.
After
Reports correct position.