mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 02:42:33 +01:00
Minor code review
This commit is contained in:
parent
f9ab4b7504
commit
41d49921c8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user