mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-02 03:12:25 +01:00
Case insensitive --map-syntax
(#2650)
Co-authored-by: Nicolas AMBRY <nicolas.ambry@atos.net>
This commit is contained in:
@@ -211,7 +211,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));
|
||||
|
Reference in New Issue
Block a user