unused var
[mono.git] / mcs / class / System / System.Text.RegularExpressions / InlineExplicitCaptureConstruct.jvm.cs
index 6af952f145aab51a6e0543d827bba19fcaa67754..779a124bc727ad9c11fb650636277359fc37799d 100644 (file)
@@ -39,7 +39,7 @@ namespace System.Text.RegularExpressions
 {
        sealed class InlineExplicitCaptureConstruct : IConstructType
        {
-               private const string DEFINITION = @"(?<=(?:\A|[^\\])(?:[\\]{2}){0,1073741823}\()\?[imsx]?n[-imsx]?:[^\)]*\)";
+               private const string DEFINITION = @"(?<=(?:[^\\]|\A)(?:[\\]{2}){0,1073741823}\()\?[imsx]*n[-imsx]*:[^\)]+\)";
 
                public bool HasConstruct (string pattern, RegexOptions options) {
                        return JavaUtils.IsMatch (pattern, DEFINITION);