Browse Source

fix for issue 141

Bug: string.replace using regex and function as paramters
tormy 10 years ago
parent
commit
5ab087554e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Jint/Native/String/StringPrototype.cs

+ 1 - 2
Jint/Native/String/StringPrototype.cs

@@ -506,8 +506,7 @@ namespace Jint.Native.String
                     for (var k = 0; k < match.Groups.Count; k++)
                     for (var k = 0; k < match.Groups.Count; k++)
                     {
                     {
                         var group = match.Groups[k];
                         var group = match.Groups[k];
-                        if (group.Success)
-                            args.Add(group.Value);
+                        args.Add(group.Value);
                     }
                     }
                     
                     
                     args.Add(match.Index);
                     args.Add(match.Index);