fix(utils/ipaddr): expand "::" to eight zero groups (#4973)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
`expandIPv6('::')` returned 14 zero groups instead of 8. The unspecified address `::` splits into three empty sections (`['', '', '']`), but the loop only removed a single adjacent empty before expanding, so a second empty slot was expanded again and produced extra groups. Drain all consecutive empty sections before filling, leaving exactly one slot for the zero groups. Other forms keep working since a single `::` elsewhere yields at most two adjacent empties.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: youcefzemmar <dzbuildoff@gmail.com>
- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diff stats
2 files+8 added−1 removed
- tests:+4 added−0 removed
- other:+4 added−1 removed