Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit 0fcb4ba

Browse files
authored
update suggestions code (#197)
1 parent 775a555 commit 0fcb4ba

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dist/index.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/review.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,12 @@ function parseReview(
878878
suggestionEnd,
879879
suggestionStartIndex
880880
)
881+
882+
if (suggestionEndIndex === -1) {
883+
// Break the loop if the closing delimiter is not found
884+
break
885+
}
886+
881887
const suggestionBlock = comment.substring(
882888
suggestionStartIndex + suggestionStart.length,
883889
suggestionEndIndex

0 commit comments

Comments
 (0)