1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Minor code review

This commit is contained in:
Raymond Hill 2024-09-14 09:20:54 -04:00
parent f9ab4b7504
commit 41d49921c8
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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);
}