mirror of
https://github.com/leiurayer/downkyi.git
synced 2024-04-21 12:41:55 +00:00
修复文件名异常导致的下载失败
This commit is contained in:
@@ -199,7 +199,7 @@ namespace DownKyi.Core.Utils
|
||||
destName = Regex.Replace(destName, @"\p{C}+", string.Empty);
|
||||
|
||||
// 移除前导和尾部的空白字符、dot符
|
||||
return destName.Trim().TrimStart('.').TrimEnd('.');
|
||||
return destName.Trim('.').Trim();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user