From dfdde04186e6f5a0afe9b8d932eaa3e5cb32b73e Mon Sep 17 00:00:00 2001 From: jspenguin2017 Date: Tue, 25 Dec 2018 20:29:29 -0700 Subject: [PATCH] https://github.com/gorhill/uBlock/commit/cd597709bb3a4efb7c2d908c52c3fe66eedeaa5a#diff-af2d24ded69a121983a18b6743ff3558 --- src/js/nano-1p-filters.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/nano-1p-filters.js b/src/js/nano-1p-filters.js index 0b2d297..0d74a6e 100644 --- a/src/js/nano-1p-filters.js +++ b/src/js/nano-1p-filters.js @@ -182,10 +182,9 @@ nano.import_picked = function () { return s; const out = []; - let filter_match; while (matches !== null) { if (matches.length === 2) { - filter_match = re_abp_filter_extractor.exec(matches[1].trim()); + let filter_match = re_abp_filter_extractor.exec(matches[1].trim()); if (filter_match !== null && filter_match.length === 2) out.push(filter_match[1].trim().replace(/\\\[/g, "[")); } @@ -224,7 +223,7 @@ nano.import_filters = () => { /*****************************************************************************/ nano.export_filters = () => { - var val = nano.editor.get_platform_value().trim(); + const val = nano.editor.get_platform_value().trim(); if (val === "") return;