mirror of
https://github.com/SabreTools/SabreTools.Matching.git
synced 2026-07-08 18:06:06 +00:00
Add case-insensitive matching to file path match
This commit is contained in:
@@ -11,7 +11,8 @@ namespace SabreTools.Matching.Paths
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="needle">String representing the search</param>
|
||||
public FilePathMatch(string needle)
|
||||
: base($"{Path.DirectorySeparatorChar}{needle}", false, true) { }
|
||||
/// <param name="matchCase">True to match exact casing, false otherwise</param>
|
||||
public FilePathMatch(string needle, bool matchCase = false)
|
||||
: base($"{Path.DirectorySeparatorChar}{needle}", matchCase, true) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user