-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: decoder undefined json bug (#210)
When the stringified json contains a undefined or NaN value we need to replace it by null to allow for json.parse to work. Previously we used a simple replace. Now its a regex that only replaces unquoted instances of undefined & NaN.
- Loading branch information
1 parent
4daf7b2
commit f3cd2e7
Showing
1 changed file
with
14 additions
and
5 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