From e9538d842f8ddfd594cede2c8718344a2140b2da Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 15 Jun 2024 23:20:47 +0900 Subject: [PATCH 1/2] Fix messages --- to-rdjsonl.jq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to-rdjsonl.jq b/to-rdjsonl.jq index db9c116..ba8844b 100644 --- a/to-rdjsonl.jq +++ b/to-rdjsonl.jq @@ -1,7 +1,7 @@ . as $item | if .type == "typo" then { - "message": ("Typo: " + .typo + " -> " + (.corrections | join(", "))), + "message": ("`" + .typo + "` should be `" + (.corrections | join("`, `")) + "`"), "location": { "path": .path, "range": { From 7747a051cf1e53da3ce92ba2f4071d27bd7e60f1 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 15 Jun 2024 23:21:48 +0900 Subject: [PATCH 2/2] update test --- testdata/text.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/text.md b/testdata/text.md index 7d27c68..c1d0d29 100644 --- a/testdata/text.md +++ b/testdata/text.md @@ -1,4 +1,4 @@ -Determinisitic result is important! +Determinisitic result is important. colour # <= Check -locale @@ -8,4 +8,4 @@ varius A abd B -It SHOUL be A +It SHOUL be A!