Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Aug 14, 2024
1 parent 4c9a3bb commit 4cbcc7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ module.exports = (function () {

result = result.filter((rule) => {
// remove 'Diff-Path' header tag from the rules
// since @adguard/diff-builder does not support third-party patches
// 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 4cbcc7c

Please sign in to comment.