From 6d8fe342b04c7c40b59ef35d690050a3a083a703 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 15 Jun 2024 22:35:05 +0900 Subject: [PATCH] fix syntax error --- to-rdjsonl.jq | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/to-rdjsonl.jq b/to-rdjsonl.jq index ea9e5da..9622346 100644 --- a/to-rdjsonl.jq +++ b/to-rdjsonl.jq @@ -5,15 +5,15 @@ if .type == "typo" then "location": { "path": .path, "range": { - "start": { "line": .line_num, "column": .byte_offset + 1 }, - "end": { "line": .line_num, "column": (.byte_offset + (.typo | length) + 1) } + "start": { "line": .line_num, "column": (.byte_offset + 1) }, + "end": { "line": .line_num, "column": (.byte_offset + (.typo | length)) } } }, "suggestions": .corrections | map({ "text": ., "range": { - "start": { "line": $item.line_num, "column": $item.byte_offset + 1 }, - "end": { "line": $item.line_num, "column": ($item.byte_offset + ($item.typo | length) + 1) } + "start": { "line": $item.line_num, "column": ($item.byte_offset + 1) }, + "end": { "line": $item.line_num, "column": ($item.byte_offset + ($item.typo | length)) } } }) }