str.lstrip('0x') strips any combination of '0' and 'x' characters from
the left, not the literal two-character prefix '0x'. For subnet masks
where the hex digits start with '0' (e.g. '0x00000000' for a /0 mask),
lstrip strips all leading zeros along with the 'x', producing an empty
string instead of '00000000'.
Replace with a slice [2:] which correctly removes exactly the first two
characters ('0x') regardless of what follows.
This bug affected both the legacy ipv4_mask field and the ipv4[] list
items in _process() (lines 267 and 292).
Fixes#685
* test: split out test fixtures for long ipv6 traceroute for consistency
* refactor(jc/parsers/traceroute): remove duplicate ParseError class
* refactor(jc/parsers/traceroute): pre-process data in _loads() for easy-to-reuse
* refactor(jc/parsers/traceroute): split hop serialization into separate function to reuse
* refactor(jc/parsers/traceroute): simplify numeric conversion and make it reusable for traceroute_s
* fix(jc/parsers/traceroute): stricter regex to match traceroute headers only
* feat(jc/parsers/traceroute_s): v1.0 implementation
* fix(jc/parsers/traceroute): revert "_" prefix in function and class names
* fixup! fix(jc/parsers/traceroute): revert "_" prefix in function and class names
* chore(jc/parsers/traceroute): update the author information
yay is a popular pacman wrapper that adds extra functionality to
standard pacman. It has the same output format as pacman.
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
* feat(patch): introduce net localgroup, net user, and route print parsers
* fix: fix net user parsing error
* fix: address PR findings
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>