mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-25 11:54:43 +08:00
25 lines
692 B
C#
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";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|