Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: dont escape utf8 characters when saving #54

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

sillydan1
Copy link
Collaborator

Fix: Dont escape utf8 characters in the save function

This PR fixes an issue where many characters would be escaped and would be very difficult for humans to read. Now the save function will save characters as humanly readable text.

Please note that this will affect all projects next time you save it.

Example

Old behavior: When saving a project that has an guard with the value:

foo > 30, it would save a json file foo \u003e 30.

New behavior: When saving a project that has an guard with the value:

foo > 30, it saves a json file foo > 30.

@sillydan1 sillydan1 changed the title Fix: save as utf8 Fix: dont escape utf8 characters when saving Nov 26, 2022
@sillydan1 sillydan1 force-pushed the fix/save-utf8-as-utf8 branch from 8ddec0e to 8fd0f8f Compare November 27, 2022 09:13
@sillydan1 sillydan1 requested a review from Nielswps November 27, 2022 10:10
@sillydan1 sillydan1 merged commit 13aed79 into master Dec 2, 2022
@sillydan1 sillydan1 deleted the fix/save-utf8-as-utf8 branch December 2, 2022 21:04
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