Skip to content

Commit 067c000

Browse files
committed
Add back ambiguous range correction
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
1 parent 71af15d commit 067c000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec-insert/lib/doc_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def find_insertions(lines)
4646
.filter { |line, _index| line.match?(START_MARKER) }
4747
.map { |_line, index| index }
4848
end_indices = start_indices.map do |index|
49-
(index..lines.length - 1).find { |i| lines[i].match?(END_MARKER) }
49+
(index..(lines.length - 1)).find { |i| lines[i].match?(END_MARKER) }
5050
end.compact
5151

5252
validate_markers!(start_indices, end_indices)

0 commit comments

Comments
 (0)