Skip to content

Commit 0d80d37

Browse files
authored
Merge pull request #27 from MatthiasJentsch/patch-1
Fix for: Values can't start with a slash
2 parents 12b2685 + 09f05df commit 0d80d37

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)