Skip to content

Commit

Permalink
Fix for issue sharkdp#2520
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas AMBRY committed Aug 28, 2023
1 parent 00b7e3b commit bb82360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

## Bugfixes

- Switched default behavior of `--map-syntax` to be case insensitive #2520

## Other

- Output directory for generated assets (completion, manual) can be customized, see #2515 (@tranzystorek-io)
Expand Down
2 changes: 1 addition & 1 deletion src/syntax_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<'a> SyntaxMapping<'a> {

pub fn insert(&mut self, from: &str, to: MappingTarget<'a>) -> Result<()> {
let glob = GlobBuilder::new(from)
.case_insensitive(false)
.case_insensitive(true)
.literal_separator(true)
.build()?;
self.mappings.push((glob.compile_matcher(), to));
Expand Down

0 comments on commit bb82360

Please sign in to comment.