Browse Source

fix validation

Veloe 1 year ago
parent
commit
abc4cb57cb
2 changed files with 4 additions and 4 deletions
  1. 2 2
      StringReplacer/Program.cs
  2. 2 2
      StringReplacer/StringReplacer.csproj

+ 2 - 2
StringReplacer/Program.cs

@@ -103,7 +103,7 @@ public static class Program
                     Console.Write("Path:");
                     path = Console.ReadLine().Trim() ?? string.Empty;
                 }
-                while (!string.IsNullOrEmpty(path) && !Directory.Exists(path));
+                while (string.IsNullOrEmpty(path) || !Directory.Exists(path));
                 _logger.Information($"Path: {path}");
             }
 
@@ -114,7 +114,7 @@ public static class Program
                     Console.Write("Find:");
                     word_Find = Console.ReadLine().Trim() ?? string.Empty;
                 }
-                while (!string.IsNullOrEmpty(word_Find));
+                while (string.IsNullOrEmpty(word_Find));
                 _logger.Information($"Find: {word_Find}");
             }
 

+ 2 - 2
StringReplacer/StringReplacer.csproj

@@ -5,8 +5,8 @@
     <TargetFramework>net7.0</TargetFramework>
     <ImplicitUsings>enable</ImplicitUsings>
     <Nullable>enable</Nullable>
-    <AssemblyVersion>1.0.0.49</AssemblyVersion>
-    <FileVersion>1.0.0.49</FileVersion>
+    <AssemblyVersion>1.0.0.50</AssemblyVersion>
+    <FileVersion>1.0.0.50</FileVersion>
   </PropertyGroup>
 
   <ItemGroup>