-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json_data: Autorepair corrupted project files
If a file is detected as having corrupted unicode escapes, we make a backup copy as filename.osp.bak (or filename.osp.bak.1...), then regexp-replace all of the broken escapes with corrected ones. Then we run the file through json.loads() and json.dumps() again to remove the escaped characters, and write the results back to the original file location as UTF-8.
- Loading branch information
Showing
1 changed file
with
101 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters