We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2540864 commit 5163b80Copy full SHA for 5163b80
telo_misikeke/telo_misikeke.js
@@ -11,7 +11,7 @@ export function errors(text) {
11
return new ParserWithCallbacks(RULES, false)
12
.tokenize(text)
13
.filter(({ ruleName }) => RULES[ruleName].category === "error")
14
- .map(({ text, match }) =>
15
- `"${escape(text)}" ${getMessage(token.ruleName, match)}`
+ .map(({ text, ruleName, match }) =>
+ `"${escape(text)}" ${getMessage(ruleName, match)}`
16
);
17
}
0 commit comments