lstrip(" Directory of ") strips any character in the set
{' ','D','i','r','e','c','t','o','y','f'}, which incorrectly removes
the 'D' from D:\ paths. Use fixed-length prefix removal with [len():]
instead.
Fixes#687
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
lstrip('0x') strips any character in {'0','x'} from the left, not the
literal prefix "0x". This causes incorrect mask conversion for masks
with leading zero hex digits (e.g. 0x00000000 -> empty string instead
of 0.0.0.0).
Replace lstrip('0x') with [2:] to correctly remove only the '0x'
prefix. Fixes both the legacy ipv4_mask field and the ipv4[] list.
Fixes#685
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* 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
* 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>
* created the amixer first skeleton
* push testing and integrate this commit and branch with issue: #591
* #591 checks the input data with jc utils
* created the data parser of the sget control of the amixer sget <controller> command.
* test commit - just for tests
* another test commit
* another test commit
* created a dedicated pseudo algorithm for the amixer sget and tried various of strings.
* orginized the docstring with general explanation about the tool and the amixer tool output and algorithm of the input parsing and input examples.
* created raw implementation, but it's raw either or either.
* orginized the content inside the amixer parser
* removed endpoint name
* added amixer to the jc parser in lib
* more explanations
* added tests for the amixer sget
* added tests for the amixer sget
* fine versioning fix
* created docstring+another explanations seperated.
* created the amixer parser docu
* added the amixer in alphabet order to the json convert lib
* Fix PEP 8: E302 violation as part of boy scout principle
* deleted not necessary file
* fixed the spaces between sections in the amixer description
* resolved commits such as amixer module docstring and preperations for parser for raw=False.
* Revert "Fix PEP 8: E302 violation as part of boy scout principle"
This reverts commit 241d1a1c63.
* created the dedicated _process for raw=False
* created the dedicated _process for raw=False
* added tests for the _process raw=False.
* changed keys to be lowercase snake-case - Change 'dB' to 'db'
* added more dB -> db changes and used int convertor of the jc utils
---------
Co-authored-by: EdenRafael <eden.refael@kazuar.com>
Co-authored-by: Eden Refael <edeenraf@hotmail.com>
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
* feat: add parser to parse the output of wg
* fixup! feat: add parser to parse the output of wg
* feat: Add tests for windows 10
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
* add more parsing functionality for transfering state
* add additional/conditional fields into the schema
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>