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

XOF_UNDERSCORES: hyphens in topmost keys are not replaced #80

Closed
jlduran opened this issue Mar 12, 2021 · 2 comments
Closed

XOF_UNDERSCORES: hyphens in topmost keys are not replaced #80

jlduran opened this issue Mar 12, 2021 · 2 comments
Assignees
Labels

Comments

@jlduran
Copy link

jlduran commented Mar 12, 2021

Tested on FreeBSD 13 (libxo 1.4.0), when adding the underscores flag, the hyphens in the topmost keys are never underscored.

For example:

% uptime --libxo json
{"uptime-information": {"time-of-day":"10:09AM", ...

% uptime --libxo json,underscores
{"uptime-information": {"time_of_day":"10:09AM", ...

For uptime-information, the hyphen is not replaced. I am not sure if this is intended.

@philshafer philshafer self-assigned this Mar 12, 2021
@philshafer philshafer added the bug label Mar 12, 2021
@philshafer
Copy link
Contributor

The bug applies to all containers, not just the top one, and also to lists. Quite embarrassing, actually. Sorry it's taken so long to get cycles to address this, but the fix is now in "develop" and I'll roll a new release, that I'll then import into FB.

Thanks,
Phil

@philshafer
Copy link
Contributor

Fixed in libxo-1.5.0

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

No branches or pull requests

2 participants