From 41d49921c8a9061ced09ac84ef3a4bc4162f5c01 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 14 Sep 2024 09:20:54 -0400 Subject: [PATCH] Minor code review --- src/js/filtering-context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/filtering-context.js b/src/js/filtering-context.js index 0bbd7decf..933785f55 100644 --- a/src/js/filtering-context.js +++ b/src/js/filtering-context.js @@ -257,7 +257,7 @@ export const FilteringContext = class { const c0 = ipaddr.charCodeAt(0); if ( c0 === 0x5B /* [ */ ) { return (this.ipaddress = ipaddr.slice(1, -1)); - } else if ( c0 >= 0x30 && c0 <= 0x39 ) { + } else if ( c0 <= 0x39 && c0 >= 0x30 ) { if ( reIPv4.test(ipaddr) ) { return (this.ipaddress = ipaddr); }