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

[BUG] problem with doublequotes in the keys. #96

Open
DerZyklop opened this issue Jul 7, 2020 · 1 comment
Open

[BUG] problem with doublequotes in the keys. #96

DerZyklop opened this issue Jul 7, 2020 · 1 comment

Comments

@DerZyklop
Copy link

What / Why

my ini file content

[gitflow "branch.feature/PLANO-34129"]
	base = master

gets parsed to

{
  'gitflow "branch': {
    'feature/PLANO-34129"': {
      'base': 'master'
    }
  }
}

Note the missing " in the keys.

How

Steps to Reproduce

.gitconfig

[gitflow "branch.feature/PLANO-34129"]
	base = master

reproduce.js

const ini = require('ini')
const fs = require('fs')

var config = ini.parse(fs.readFileSync('.gitconfig', 'utf-8'))

console.log(JSON.stringify(team_config));

Expected Behavior

Something like this:

{
  'gitflow': {
    'branch': {
      'feature/PLANO-34129': {
        'base': 'master'
      }
    }
  }
}
@DerZyklop DerZyklop changed the title [BUG] doublequotes are missing in the keys. [BUG] non-closing doublequotes in the keys. Jul 7, 2020
@DerZyklop DerZyklop changed the title [BUG] non-closing doublequotes in the keys. [BUG] problem with doublequotes in the keys. Jul 7, 2020
@aleclarson
Copy link

Actually, it's a problem with dots, not double quotes.

Duplicate of #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants