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 a97acf8 commit 2a9447bCopy full SHA for 2a9447b
telo_misikeke/telo_misikeke.js
@@ -11,9 +11,7 @@ export function errors(text) {
11
return new ParserWithCallbacks(RULES, false)
12
.tokenize(text)
13
.filter((token) => RULES[token.ruleName].category === "error")
14
- .map((token) => {
15
- const src = escape(token.text);
16
- const message = getMessage(token.ruleName, token.match);
17
- return `"${src}" ${message}`;
18
- });
+ .map((token) =>
+ `"${escape(token.text)}" ${getMessage(token.ruleName, token.match)}`
+ );
19
}
0 commit comments