denoland / denoland/std

ini file string value containing value that parses as non-string stringifies without quotes

Open
#4,809 3 comments 1 reaction 0 assignees View on GitHub
bug ini
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

**Steps to Reproduce**

```
> stringify({ value: "undefined" })
"value=undefined"
> stringify({ value: "1" })
"value=1"
```

**Expected behavior**

These should stringify with quotes like `"undefined"` and `"1"` so that they're not parsed as numbers/undefined/etc.

**Environment**

- OS: [e.g. Ubuntu 20.04, MacOS 11]
- deno version:
- std version: 0.224.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.