Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ini file parsing considers all values as strings #4806

Open
dsherret opened this issue May 21, 2024 · 1 comment
Open

ini file parsing considers all values as strings #4806

dsherret opened this issue May 21, 2024 · 1 comment
Labels
bug Something isn't working ini PR welcome A pull request for this issue would be welcome

Comments

@dsherret
Copy link
Member

Describe the bug

Steps to Reproduce

> import { parse } from "jsr:@std/ini"
undefined
> parse("value=undefined")
{ value: "undefined" }
> parse("value=null")
{ value: "null" }
> parse("value=true")
{ value: "true" }
> parse("value=false")
{ value: "false" }
> parse("value=123")
{ value: "123" }

Expected behavior

Should understand booleans, undefined, null, and numbers.

Environment

  • OS: [e.g. Ubuntu 20.04, MacOS 11]
  • deno version:
  • std version: 0.224.0
@dsherret dsherret added bug Something isn't working needs triage labels May 21, 2024
@iuioiua iuioiua added ini PR welcome A pull request for this issue would be welcome and removed needs triage labels May 22, 2024
@kt3k
Copy link
Member

kt3k commented May 23, 2024

Looks like supporting boolean, number, string is common among parsers https://en.wikipedia.org/wiki/INI_file#Comparison_of_INI_parsers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ini PR welcome A pull request for this issue would be welcome
Projects
None yet
Development

No branches or pull requests

3 participants