mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Minor code review
This commit is contained in:
parent
f9ab4b7504
commit
41d49921c8
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ export const FilteringContext = class {
|
||||||
const c0 = ipaddr.charCodeAt(0);
|
const c0 = ipaddr.charCodeAt(0);
|
||||||
if ( c0 === 0x5B /* [ */ ) {
|
if ( c0 === 0x5B /* [ */ ) {
|
||||||
return (this.ipaddress = ipaddr.slice(1, -1));
|
return (this.ipaddress = ipaddr.slice(1, -1));
|
||||||
} else if ( c0 >= 0x30 && c0 <= 0x39 ) {
|
} else if ( c0 <= 0x39 && c0 >= 0x30 ) {
|
||||||
if ( reIPv4.test(ipaddr) ) {
|
if ( reIPv4.test(ipaddr) ) {
|
||||||
return (this.ipaddress = ipaddr);
|
return (this.ipaddress = ipaddr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue