Skip to content

Commit

Permalink
fix: fix link index in a line calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Lobzov committed Jan 24, 2024
1 parent dc86f64 commit 83d6e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asciidoc-link-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function checkFileLinks(file, pattern) {

while ((match = pattern.exec(line)) !== null) {

res = await logCheckLinkResult(lineNumber, match.index, match[0]);
res = await logCheckLinkResult(lineNumber, match.index + 1, match[0]);
if (res === -1) {
exitCode = res;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asciidoc-link-check",
"version": "0.0.8",
"version": "0.0.9",
"description": "script checks links availability in an asciidoc file",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 83d6e16

Please sign in to comment.