Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Aug 14, 2024
1 parent 01b4bad commit acf8656
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,13 @@ module.exports = (function () {
}

result = result.filter((rule) => {
// remove 'Diff-Path' header tag from the rules
// because some third-party filters may contain it
// but @adguard/diff-builder does not support third-party patches.
// Anyway the 'Diff-Path' header tag should be added by the diff-builder during patch building
// and should not be present in the filter file.
/**
* 'Diff-Path' header tag should be removed from the rules
* because some third-party filters may contain it
* but @adguard/diff-builder does not support third-party patches.
* Anyway the 'Diff-Path' header tag should be added by the diff-builder during patch building
* and should not be present in the filter file.
*/
return !(rule.startsWith(RuleMasks.MASK_COMMENT) && rule.includes(DIFF_PATH_TAG));
});

Expand Down

0 comments on commit acf8656

Please sign in to comment.