From acf86561e78144df365c32b91f578783628a107c Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Wed, 14 Aug 2024 18:12:03 +0300 Subject: [PATCH] fix comment --- src/main/builder.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/builder.js b/src/main/builder.js index e19aa9f..d52ecad 100644 --- a/src/main/builder.js +++ b/src/main/builder.js @@ -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)); });