Explorar o código

* Replace with the replacement string not the pattern ;-)

svn path=/trunk/mcs/; revision=3792
Adam Treat %!s(int64=24) %!d(string=hai) anos
pai
achega
4e70b38a95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mcs/class/System/System.Text.RegularExpressions/regex.cs

+ 1 - 1
mcs/class/System/System.Text.RegularExpressions/regex.cs

@@ -115,7 +115,7 @@ namespace System.Text.RegularExpressions {
 			 RegexOptions options)
 		{
 			Regex re = new Regex (pattern, options);
-			return re.Replace (input, pattern);
+			return re.Replace (input, replacement);
 		}
 
 		public static string[] Split (string input, string pattern) {