Skip to content

Fix stdin string escaping issue in ReplaceStdIn function#4

Merged
nvima merged 1 commit intomainfrom
fix-stdin-escaping
Apr 22, 2023
Merged

Fix stdin string escaping issue in ReplaceStdIn function#4
nvima merged 1 commit intomainfrom
fix-stdin-escaping

Conversation

@nvima
Copy link
Owner

@nvima nvima commented Apr 22, 2023

This commit resolves the issue with incorrect escaping of special characters in the ReplaceStdIn function. Instead of manually escaping double quotes and new lines, we now use the json.Marshal function to properly escape the input string. This ensures that the resulting JSON is valid, even when the input contains special characters or escape sequences.

This commit resolves the issue with incorrect escaping of special characters
in the ReplaceStdIn function. Instead of manually escaping double quotes and
new lines, we now use the json.Marshal function to properly escape the input
string. This ensures that the resulting JSON is valid, even when the input
contains special characters or escape sequences.
@nvima nvima merged commit 998ba7a into main Apr 22, 2023
@nvima nvima deleted the fix-stdin-escaping branch April 22, 2023 17:25
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