BililiveRecorder/BililiveRecorder.WPF/Pages/AboutPage.xaml.cs
2023-07-20 18:52:58 +08:00

25 lines
692 B
C#

using System.Text.RegularExpressions;
namespace BililiveRecorder.WPF.Pages
{
/// <summary>
/// Interaction logic for AboutPage.xaml
/// </summary>
public partial class AboutPage
{
public AboutPage()
{
this.InitializeComponent();
if (!string.IsNullOrEmpty(GitVersionInformation.CommitDate))
{
var match = Regex.Match(GitVersionInformation.CommitDate, @"^(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})$");
if (match.Success)
{
this.CopyrightTextBlock.Text = $" © {match.Groups["year"].Value} Genteure";
}
}
}
}
}