Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants