Skip to content

Commit

Permalink
fix cli split arguments method
Browse files Browse the repository at this point in the history
  • Loading branch information
itajaja committed Mar 17, 2015
1 parent bd74f6b commit dd9cd6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h-opc-cli/CliUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal static class CliUtils
public static IList<string> SplitArguments(string input)
{
return Regex.Split(input, @"(?:([^\s""]+)|""([^""]*)"")+")
.Where(s => s.All(c => c == ' '))
.Where(s => s.Any(c => c != ' '))
.ToList();
}
}
Expand Down

0 comments on commit dd9cd6f

Please sign in to comment.