Skip to content

Preserve literal dollars through raw config round trips - #76

Open
AryanRG wants to merge 2 commits into
explosion:mainfrom
AryanRG:fix-dollar-escape-roundtrips
Open

AryanRG wants to merge 2 commits into
explosion:mainfrom
AryanRG:fix-dollar-escape-roundtrips

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 19, 2026

Copy link
Copy Markdown

Literal dollars in values such as regex patterns gain extra escapes when a config is loaded with interpolation disabled or overrides, then saved again.

Decode those escapes when reading values, including JSON containers. Preserve the raw escapes on dict strings containing references so deferred interpolation and subsequent saves still work.

With interpolate=False, literal dollar values now contain $ rather than the encoded $$; variable references remain deferred.

Validation: full test suite, regression cases for round trips and mixed dollar/reference values, Ruff and Pyright.

@AryanRG

AryanRG commented Oct 26, 2026

Copy link
Copy Markdown
Author

Merged the latest main and resolved the parser conflict, preserving the new error handling. The tests pass locally.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant