Permalink
Browse files

Replace string concat by string format

  • Loading branch information...
1 parent e5c20c4 commit a8ae522834911a34df4f249a4b1f945bd9cc42b7 @simonlaroche simonlaroche committed Nov 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Castle.MonoRail.Framework/Helpers/ValidationStrategy/JQueryValidator.cs
@@ -683,7 +683,7 @@ public void SetAsRequired(string target, string violationMessage)
/// <param name="violationMessage">The violation message.</param>
public void SetRegExp(string target, string regExp, string violationMessage)
{
- ConfigureTarget(target, "regExp", "\"" + regExp + "\"", violationMessage);
+ ConfigureTarget(target, "regExp", string.Format("\"{0}\"", regExp), violationMessage);
}
/// <summary>

0 comments on commit a8ae522

Please sign in to comment.