From bed920b97c4aa53c0f156f174845aaab7e90da5e Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 24 Nov 2024 23:54:41 -0500 Subject: [PATCH] Add case-insensitive matching to file path match --- SabreTools.Matching/Paths/FilePathMatch.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SabreTools.Matching/Paths/FilePathMatch.cs b/SabreTools.Matching/Paths/FilePathMatch.cs index eea5c83..096241f 100644 --- a/SabreTools.Matching/Paths/FilePathMatch.cs +++ b/SabreTools.Matching/Paths/FilePathMatch.cs @@ -11,7 +11,8 @@ namespace SabreTools.Matching.Paths /// Constructor /// /// String representing the search - public FilePathMatch(string needle) - : base($"{Path.DirectorySeparatorChar}{needle}", false, true) { } + /// True to match exact casing, false otherwise + public FilePathMatch(string needle, bool matchCase = false) + : base($"{Path.DirectorySeparatorChar}{needle}", matchCase, true) { } } } \ No newline at end of file