Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-weisberg-qz committed Aug 21, 2024
1 parent 26156b6 commit b5f3e22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ function filterDiff(diffText) {
}).filter(section => section.trim() !== '');
const removeEmptyHeaders = filteredSection.filter(entry => {
// Remove empty strings and sections that are just headers with line numbers
return !entry.match(/^===== .*\/.* ======\n\d+(,\d+)?c\d+(,\d+)?$/);
return !entry.match(/^===== .*\/.* ======\n$/);
});
// Join the filtered sections back together
return removeEmptyHeaders.join('\n').trim();
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function filterDiff(diffText: string) {

const removeEmptyHeaders = filteredSection.filter(entry => {
// Remove empty strings and sections that are just headers with line numbers
return !entry.match(/^===== .*\/.* ======\n\d+(,\d+)?c\d+(,\d+)?$/);
return !entry.match(/^===== .*\/.* ======\n$/);
});

// Join the filtered sections back together
Expand Down

0 comments on commit b5f3e22

Please sign in to comment.