From edd11e16fa4d3a505c4254c868656d22a04fe9bb Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 13 Dec 2021 07:01:04 -0500 Subject: [PATCH] Fix not reporting `match-case` properly in logger Related feedback: - https://github.com/gorhill/uBlock/commit/4d482f91336f5273b69301ee13c73fe4490021ef --- src/js/static-net-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index a1c4be5fb..cc8a743e8 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -1064,7 +1064,7 @@ const FilterRegex = class { details.pattern.push('/', s, '/'); details.regex.push(s); details.isRegex = true; - if ( filterData[idata+1] !== 0 ) { + if ( filterData[idata+3] !== 0 ) { details.options.push('match-case'); } } @@ -1077,7 +1077,7 @@ const FilterRegex = class { filterData[idata+2] ), '/', - filterData[idata+3] === 1 ? ' (match-case)' : '', + filterData[idata+3] !== 0 ? ' (match-case)' : '', ].join(''); } };