You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: naive colon finder corrupts quoted keys containing colons #43
When \�pply_complex_replace\ runs on this key (e.g. replacing \8080\ with {port: 9090}), it finds the colon after \http\ instead of the actual separator colon, producing corrupted YAML.
Trigger conditions
Document must contain a key with a colon in it (quoted or tagged)
A complex-value replace (mapping or sequence) must target that key's value
Simple scalar replaces go through yamlpatch directly and are unaffected
Proposed fix
Use an AST-based approach to locate the key-value separator position. Since yamlpath cannot be modified, this logic needs to live in this package — e.g. a quote-aware colon finder that skips colons within single/double quotes.
Alternatively, use the byte span from the Feature's context metadata to determine where the key ends and the value begins.
Severity
Medium — low probability (quoted keys with colons are uncommon) but silent data corruption when triggered.
Activity
fix: replace naive colon finder with query_exact prefix trim
43 bug naive colon finder corrupts quoted keys containing colons (#46)