Skip to content

Commit 6cd3733

Browse files
committed
fix
1 parent 30114be commit 6cd3733

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

telo_misikeke/telo_misikeke.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { escape } from "@std/html/entities";
44
import LINKU from "./linku_data.json" with { type: "json" };
55
import { ParserWithCallbacks } from "./Parser.js";
66
import { build_rules, getMessage } from "./rules.js";
7+
import { NEWLINES } from "../src/misc.ts";
78

89
const RULES = build_rules(LINKU);
910

@@ -13,7 +14,7 @@ export function errors(text) {
1314
.filter(({ ruleName }) => RULES[ruleName].category === "error")
1415
.map(({ text, ruleName, match }) =>
1516
`"${escape(text)}" ${
16-
getMessage(ruleName, match).replaceAll(/\r\n|\n|\r/, "<br/>")
17+
getMessage(ruleName, match).replaceAll(NEWLINES, "<br/>")
1718
}`
1819
);
1920
}

0 commit comments

Comments
 (0)