Skip to content

Commit 09f05df

Browse files
Fix for: Values can't start with a slash
This fixes #26 . The values can also start with a slash. All 44 tests are passing with this change.
1 parent 1bb7f65 commit 09f05df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utility.CommandLine.Arguments/Arguments.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public class Arguments
147147
/// <summary>
148148
/// The regular expression with which to parse the command line string.
149149
/// </summary>
150-
private const string ArgumentRegEx = "(?:[-]{1,2}|\\/)([^=: ]+)[=: ]?(\\w\\S*|\\\"[^\"]*\\\"|\\\'[^']*\\\')?|([^ ([^'\\\"]+|\"[^\\\"]+\"|\\\'[^']+\\\')";
150+
private const string ArgumentRegEx = "(?:[-]{1,2}|\\/)([^=: ]+)[=: ]?(\\/?\\w\\S*|\\\"[^\"]*\\\"|\\\'[^']*\\\')?|([^ ([^'\\\"]+|\"[^\\\"]+\"|\\\'[^']+\\\')";
151151

152152
/// <summary>
153153
/// The regular expression with which to parse argument-value groups.
@@ -668,4 +668,4 @@ private static string TrimOuterQuotes(string value)
668668
public class OperandsAttribute : Attribute
669669
{
670670
}
671-
}
671+
}

0 commit comments

Comments
 (0)