Permalink
Browse files

Fixed logic issue with the multiple token scenario - was causing only…

… the last token to be applied.
  • Loading branch information...
1 parent 1f1b55c commit ed8563d2bfe441075f0b0f9c33077aae0303329e @ESLBuilds ESLBuilds committed Oct 2, 2010
@@ -54,7 +54,7 @@ private static string Replace(Dictionary<string, string> tokens, string value)
foreach (var token in tokens)
{
- result = Regex.Replace(value, token.Key, match => token.Value, RegexOptions.IgnoreCase);
+ result = Regex.Replace(result, token.Key, match => token.Value, RegexOptions.IgnoreCase);
}
return result;

0 comments on commit ed8563d

Please sign in to comment.