Change unicode asterisk

This commit is contained in:
Michael Bucari-Tovo 2022-06-19 18:04:00 -06:00
parent 8374fea776
commit 3cd394ec10
2 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@ namespace FileManager
replaced[i] = replaced[i] switch replaced[i] = replaced[i] switch
{ {
'?' => '', '?' => '',
'*' => '', '*' => '',
'<' => '', '<' => '',
'>' => '', '>' => '',
'"' => GetQuote(i), '"' => GetQuote(i),

View File

@ -22,13 +22,13 @@ namespace FileUtilityTests
[TestMethod] [TestMethod]
// empty replacement // empty replacement
[DataRow("abc*abc.txt", "", "abcabc.txt")] [DataRow("abc*abc.txt", "", "abcabc.txt")]
// non-empty replacement // non-empty replacement
[DataRow("abc*abc.txt", "ZZZ", "abcabc.txt")] [DataRow("abc*abc.txt", "ZZZ", "abcabc.txt")]
// standardize slashes // standardize slashes
[DataRow(@"a/b\c/d", "Z", @"a\b\c\d")] [DataRow(@"a/b\c/d", "Z", @"a\b\c\d")]
// remove illegal chars // remove illegal chars
[DataRow("a*?:z.txt", "Z", "az.txt")] [DataRow("a*?:z.txt", "Z", "az.txt")]
// retain drive letter path colon // retain drive letter path colon
[DataRow(@"C:\az.txt", "Z", @"C:\az.txt")] [DataRow(@"C:\az.txt", "Z", @"C:\az.txt")]
// replace all other colons // replace all other colons