2023-07-20 18:52:58 +08:00
|
|
|
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();
|
2023-07-20 18:52:58 +08:00
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|