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 30114be commit 6cd3733Copy full SHA for 6cd3733
telo_misikeke/telo_misikeke.js
@@ -4,6 +4,7 @@ import { escape } from "@std/html/entities";
4
import LINKU from "./linku_data.json" with { type: "json" };
5
import { ParserWithCallbacks } from "./Parser.js";
6
import { build_rules, getMessage } from "./rules.js";
7
+import { NEWLINES } from "../src/misc.ts";
8
9
const RULES = build_rules(LINKU);
10
@@ -13,7 +14,7 @@ export function errors(text) {
13
14
.filter(({ ruleName }) => RULES[ruleName].category === "error")
15
.map(({ text, ruleName, match }) =>
16
`"${escape(text)}" ${
- getMessage(ruleName, match).replaceAll(/\r\n|\n|\r/, "<br/>")
17
+ getMessage(ruleName, match).replaceAll(NEWLINES, "<br/>")
18
}`
19
);
20
}
0 commit comments