1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 19:32:25 +01:00

Case insensitive --map-syntax (#2650)

Co-authored-by: Nicolas AMBRY <nicolas.ambry@atos.net>
This commit is contained in:
Nicolas AMBRY
2023-09-14 16:04:43 +02:00
committed by GitHub
parent e2bf85e749
commit 5a240f36b9
4 changed files with 27 additions and 1 deletions

View File

@@ -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));