diff --git a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs index 06c28270074c..0d10c71f27c4 100644 --- a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs +++ b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs @@ -138,13 +138,13 @@ private static string GenerateDestinationFileName(EncodeTask task, IUserSettingS destinationFilename = userSettingService.GetUserSetting(UserSettingConstants.AutoNameFormat); destinationFilename = destinationFilename - .RegexReplace(Constants.Source, sourceName) - .RegexReplace(Constants.Title, dvdTitle) - .RegexReplace(Constants.Chapters, combinedChapterTag) - .RegexReplace(Constants.Date, DateTime.Now.Date.ToShortDateString().Replace('/', '-')) - .RegexReplace(Constants.Time, DateTime.Now.ToString("HH-mm")) - .RegexReplace(Constants.CretaionDate, createDate) - .RegexReplace(Constants.CreationTime, createTime); + .Replace(Constants.Source, sourceName) + .Replace(Constants.Title, dvdTitle) + .Replace(Constants.Chapters, combinedChapterTag) + .Replace(Constants.Date, DateTime.Now.Date.ToShortDateString().Replace('/', '-')) + .Replace(Constants.Time, DateTime.Now.ToString("HH-mm")) + .Replace(Constants.CretaionDate, createDate) + .Replace(Constants.CreationTime, createTime); if (task.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality) {