We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c792663 commit 7fc9f64Copy full SHA for 7fc9f64
README.md
@@ -52,6 +52,10 @@ The marshalled version of the input data.
52
53
## Changelog:
54
55
+**v1.0.5**:
56
+
57
+- Fixed a bug where errors could be thrown while attempting to marshal a string using heuristics.
58
59
**v1.0.3**:
60
61
- Added marshalling to/from `symbol`.
src/Marshaller.ts
@@ -633,9 +633,6 @@ export class Marshaller implements IMarshaller {
633
return toNum;
634
}
635
636
- // It might be an array
637
- if (primitive.startsWith("[") && primitive.endsWith("]")) return JSON.parse(primitive);
638
-
639
if (data === "null") return null;
640
if (data === "undefined") return undefined;
641
if (data === "NaN") return NaN;
0 commit comments