mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
lines merge
This commit is contained in:
parent
a1b2c21767
commit
a30d922225
@ -176,8 +176,7 @@ function _ipv6_to_string(v6Bytes, compress) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// auto compression of consecutive zero
|
// auto compression of consecutive zero
|
||||||
let mi = ps.length - 1;
|
let _ = [], mi = ps.length - 1;
|
||||||
let _ = [];
|
|
||||||
for (i = 0; i < ps.length; i++) {
|
for (i = 0; i < ps.length; i++) {
|
||||||
if (i >= mi) {
|
if (i >= mi) {
|
||||||
_.push(ps[i]);
|
_.push(ps[i]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user