Explorar el Código

Merge pull request #142 from tormy/master

Bug: string.replace using regex and function as paramters
Sébastien Ros hace 10 años
padre
commit
f767dda288
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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++)
                     {
                         var group = match.Groups[k];
-                        if (group.Success)
-                            args.Add(group.Value);
+                        args.Add(group.Value);
                     }
                     
                     args.Add(match.Index);