diff --git a/TwitchDownloaderCLI/Program.cs b/TwitchDownloaderCLI/Program.cs index ed4d7b93..4e40a757 100644 --- a/TwitchDownloaderCLI/Program.cs +++ b/TwitchDownloaderCLI/Program.cs @@ -80,7 +80,14 @@ private static void WriteApplicationBanner(ITwitchDownloaderArgs args, string[] return; } - Console.WriteLine($"{HeadingInfo.Default} {CopyrightInfo.Default.ToString()!.Replace("\u00A9", "(c)")}"); + var nameVersionString = HeadingInfo.Default.ToString(); + +#if !DEBUG + // Remove git commit hash from version string + nameVersionString = System.Text.RegularExpressions.Regex.Replace(nameVersionString, @"(?<=\d)\+[0-9a-f]+", ""); +#endif + + Console.WriteLine($"{nameVersionString} {CopyrightInfo.Default.ToString()!.Replace("\u00A9", "(c)")}"); } } } \ No newline at end of file