diff --git a/src/FindReplaceCode/Program.cs b/src/FindReplaceCode/Program.cs index 51a65a9..31e71fa 100644 --- a/src/FindReplaceCode/Program.cs +++ b/src/FindReplaceCode/Program.cs @@ -298,7 +298,7 @@ private static string ToSnakeCase(string value, char separator) private const string c_fullUsageMessage = "Usage: FindReplaceCode.exe [ ...]"; - private static readonly Regex s_hiddenDirectoryRegex = new Regex(@"[\\/]\..*[\\/]", RegexOptions.CultureInvariant); + private static readonly Regex s_hiddenDirectoryRegex = new Regex(@"[\\/]\.git[\\/]", RegexOptions.CultureInvariant); private static readonly Regex s_word = new Regex("[A-Z]([A-Z]*(?![a-z])|[a-z]*)|[a-z]+|[0-9]+", RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture); private readonly string m_folderPath;