Skip to content

Bug fix: Key delimiters are now case insensitive#2084

Open
maxBRT wants to merge 8 commits into
spf13:masterfrom
maxBRT:issue2069
Open

Bug fix: Key delimiters are now case insensitive#2084
maxBRT wants to merge 8 commits into
spf13:masterfrom
maxBRT:issue2069

Conversation

@maxBRT

@maxBRT maxBRT commented Oct 14, 2025

Copy link
Copy Markdown

Simply added the strings.ToLower(v.keyDelim)) as suggested and wrote a small test for it.

Fixes #2069

@CLAassistant

CLAassistant commented Oct 14, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread viper.go Outdated
Comment thread viper_test.go Outdated
@maxBRT maxBRT requested a review from spacez320 October 18, 2025 17:18

@djehuti djehuti left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@spacez320

Copy link
Copy Markdown
Contributor

I plan on reviewing this soon. cc @sagikazarmark

@spacez320

Copy link
Copy Markdown
Contributor

Apologies for the delay, I do still mean to review this. For now I'll probably lay down some superficial comments, but I intend to do a proper thorough review next week.

Comment thread viper.go Outdated
Comment thread viper.go Outdated
Comment thread viper_test.go

@spacez320 spacez320 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for continued work, this seems close. In addition to the tweaks, I would just add a little note in the readme around the delimeter section telling people delimeters are always lowercased, like keys.

Comment thread viper_test.go
Comment thread viper_test.go
Comment thread viper_test.go
Comment thread viper_test.go Outdated
maxBRT and others added 5 commits November 2, 2025 06:58
Co-authored-by: Matthew Coleman <matthew.e.coleman@gmail.com>
Co-authored-by: Matthew Coleman <matthew.e.coleman@gmail.com>
Co-authored-by: Matthew Coleman <matthew.e.coleman@gmail.com>
Clarify that the delimiter is case-insensitive for alphabetic characters.
@spacez320

Copy link
Copy Markdown
Contributor

/label release-note/bug-fix

@github-actions github-actions Bot added the release-note/bug-fix Release note: Bug Fixes label Nov 2, 2025

@spacez320 spacez320 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@spacez320

Copy link
Copy Markdown
Contributor

@sagikazarmark I believe this is ready for your consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/bug-fix Release note: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

key delimiter can't be uppercase

4 participants