Skip to content

Commit 943d94f

Browse files
committed
chore(src): add comment
1 parent c20b797 commit 943d94f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/no-doubled-joshi.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ const defaultOptions = {
4242

4343

4444
/*
45-
1. Paragraph Node -> text
46-
2. text -> sentences
47-
3. tokenize sentence
48-
4. report error if found word that match the rule.
45+
1. Paragraph Node -> text
46+
2. text -> sentences
47+
3. tokenize sentence
48+
4. report error if found word that match the rule.
4949
5050
*/
5151
export default function (context, options = {}) {
@@ -94,6 +94,7 @@ export default function (context, options = {}) {
9494
return;// no duplicated token
9595
}
9696
// if found differenceIndex less than
97+
// tokes are sorted ascending order
9798
tokens.reduce((prev, current) => {
9899
let startPosition = joshiTokens.indexOf(prev);
99100
let otherPosition = joshiTokens.indexOf(current);

0 commit comments

Comments
 (0)