Skip to content

Handle branch name filter case-insensitively#5

Merged
arosloffdx merged 1 commit intomasterfrom
bugfix/case-insensitive-branch-name
Jul 12, 2022
Merged

Handle branch name filter case-insensitively#5
arosloffdx merged 1 commit intomasterfrom
bugfix/case-insensitive-branch-name

Conversation

@arosloffdx
Copy link
Copy Markdown
Contributor

@arosloffdx arosloffdx commented Jul 11, 2022

Branches -n command was not treating the filter case-insensitively.

@arosloffdx arosloffdx requested a review from dylemma July 11, 2022 20:32
Copy link
Copy Markdown
Member

@dylemma dylemma left a comment

Choose a reason for hiding this comment

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

This logic should probably be more sophisticated; see https://stackoverflow.com/questions/47298336/case-insensitive-string-matching-in-rust

Case-insensitive string ops are kinda nasty with edge cases. The to_lowercase approach will handle 99% of usage, but run into issues with certain non-english characters. I'm approving on behalf of the 99% but we may need to revisit this later.

@arosloffdx arosloffdx merged commit 4af0c75 into master Jul 12, 2022
@dylemma dylemma deleted the bugfix/case-insensitive-branch-name branch July 12, 2022 14:47
@dylemma dylemma restored the bugfix/case-insensitive-branch-name branch July 12, 2022 14:47
@baffles baffles deleted the bugfix/case-insensitive-branch-name branch November 10, 2022 17:01
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

Successfully merging this pull request may close these issues.

2 participants