JuliaIO / JuliaIO/ConfParser.jl

Don't parse commas as an array

Open
#35 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
41
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Values containing commas are always split into an array. I wish there was a way to escape commas or treat the whole value as a literal?

e,g. key="a, b, c" creates an array ["a", "b", "c"]; whereas the output wanted should be the literal "a, b, c".

See https://en.wikipedia.org/wiki/INI_file # Quoted values

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the parser entry point that handles comma-separated values and compare its behavior with the quoted-values guidance in the linked INI specification. Decide how literal comma-containing values should be represented, then add coverage for key="a, b, c" and verify that the parsed result is the single literal value rather than an array.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.