Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
https://github.com/gorhill/uBlock/commit/cd597709bb3a4efb7c2d908c52c3…
Browse files Browse the repository at this point in the history
…fe66eedeaa5a#diff-af2d24ded69a121983a18b6743ff3558
  • Loading branch information
jspenguin2017 committed Dec 26, 2018
1 parent f696f14 commit dfdde04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/nano-1p-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, "["));
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit dfdde04

Please sign in to comment.