修复文件名异常导致的下载失败

croire 3 years ago
parent a0a1d659ec
commit d449c42bec

@ -199,7 +199,7 @@ namespace DownKyi.Core.Utils
destName = Regex.Replace(destName, @"\p{C}+", string.Empty); destName = Regex.Replace(destName, @"\p{C}+", string.Empty);
// 移除前导和尾部的空白字符、dot符 // 移除前导和尾部的空白字符、dot符
return destName.Trim().TrimStart('.').TrimEnd('.'); return destName.Trim('.').Trim();
} }
} }

Loading…
Cancel
Save