diff --git a/TwitchDownloaderCLI/Program.cs b/TwitchDownloaderCLI/Program.cs index f6e4aabe..23121d65 100644 --- a/TwitchDownloaderCLI/Program.cs +++ b/TwitchDownloaderCLI/Program.cs @@ -79,7 +79,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