Skip to content

Commit 90caf4d

Browse files
committed
fix(rule): fix comparison of minInterval
1 parent ff18839 commit 90caf4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/no-doubled-joshi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function (context, options = {}) {
6767
let otherPosition = joshiTokens.indexOf(current);
6868
// if difference
6969
let differenceIndex = otherPosition - startPosition;
70-
if (differenceIndex >= minInterval) {
70+
if (differenceIndex <= minInterval) {
7171
report(node, new RuleError(`一文に二回以上利用されている助詞 "${key}" がみつかりました。`, {
7272
line: sentence.loc.start.line - 1,
7373
// matchLastToken.word_position start with 1

0 commit comments

Comments
 (0)