summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-09-02 17:55:36 +0100
committersr55 <[email protected]>2020-09-02 17:56:24 +0100
commitb62ea0fc213a53986ffbbbbf81ae608632f60a42 (patch)
tree6f956d3174d7f2cb24640b1c8dd6507520b4f1f2
parent894ca21b1a52868456a61945dd653d70812093f5 (diff)
WinGui: Don't use Regex where it's not needed for the AutoName support. Fixes #3108
-rw-r--r--win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs14
1 files changed, 7 insertions, 7 deletions
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<string>(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)
{