Skip to content

Commit

Permalink
v1.2.1: Allow empty replacement string (to remove characters)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed Jul 8, 2013
1 parent e7b47ce commit 4e6cba5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Binary file modified bin/RR.exe
Binary file not shown.
6 changes: 5 additions & 1 deletion source/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ private static bool GetArguments(
fileMatch = String.Empty;
nameSearch = String.Empty;
nameReplace = String.Empty;

bool foundNameReplace = false;

pretend = false;
recursive = false;

Expand Down Expand Up @@ -153,13 +156,14 @@ private static bool GetArguments(
else if (String.IsNullOrEmpty(nameReplace))
{
nameReplace = args[i];
foundNameReplace = true;
}
}
}

return !String.IsNullOrEmpty(fileMatch)
&& !String.IsNullOrEmpty(nameSearch)
&& !String.IsNullOrEmpty(nameReplace);
&& foundNameReplace;
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.2.1.0")]
[assembly: AssemblyFileVersion("1.2.1.0")]

[assembly: CLSCompliant(true)]

0 comments on commit 4e6cba5

Please sign in to comment.