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