BililiveRecorder/BililiveRecorder.WPF/Pages/AboutPage.xaml.cs

25 lines
692 B
C#
Raw Permalink Normal View History

using System.Text.RegularExpressions;
2021-05-01 00:22:27 +08:00
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";
}
}
2021-05-01 00:22:27 +08:00
}
}
}