From b62ea0fc213a53986ffbbbbf81ae608632f60a42 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 2 Sep 2020 17:55:36 +0100 Subject: WinGui: Don't use Regex where it's not needed for the AutoName support. Fixes #3108 --- win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'win/CS/HandBrakeWPF/Helpers') diff --git a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs index 06c282700..0d10c71f2 100644 --- a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs +++ b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs @@ -138,13 +138,13 @@ namespace HandBrakeWPF.Helpers 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) { -- cgit v1.2.3