Fixed error message related to escaping curly braces.

This commit is contained in:
Kiran Challa 2017-01-03 14:33:36 -08:00
parent 071b616178
commit 755d436840
3 changed files with 36 additions and 36 deletions

View File

@ -363,7 +363,7 @@ namespace Microsoft.AspNetCore.Routing
}
/// <summary>
/// In a route parameter, '{' and '}' must be escaped with '{{' and '}}'
/// In a route parameter, '{' and '}' must be escaped with '{{' and '}}'.
/// </summary>
internal static string TemplateRoute_UnescapedBrace
{
@ -371,7 +371,7 @@ namespace Microsoft.AspNetCore.Routing
}
/// <summary>
/// In a route parameter, '{' and '}' must be escaped with '{{' and '}}'
/// In a route parameter, '{' and '}' must be escaped with '{{' and '}}'.
/// </summary>
internal static string FormatTemplateRoute_UnescapedBrace()
{

View File

@ -184,7 +184,7 @@
<value>The constraint entry '{0}' - '{1}' on the route '{2}' could not be resolved by the constraint resolver of type '{3}'.</value>
</data>
<data name="TemplateRoute_UnescapedBrace" xml:space="preserve">
<value>In a route parameter, '{' and '}' must be escaped with '{{' and '}}'</value>
<value>In a route parameter, '{' and '}' must be escaped with '{{' and '}}'.</value>
</data>
<data name="TemplateRoute_OptionalParameterCanbBePrecededByPeriod" xml:space="preserve">
<value>In the segment '{0}', the optional parameter '{1}' is preceded by an invalid segment '{2}'. Only a period (.) can precede an optional parameter.</value>

View File

@ -521,7 +521,7 @@ namespace Microsoft.AspNetCore.Routing.Template.Tests
// Act and Assert
ExceptionAssert.Throws<ArgumentException>(
() => TemplateParser.Parse(template),
"In a route parameter, '{' and '}' must be escaped with '{{' and '}}'" + Environment.NewLine +
"In a route parameter, '{' and '}' must be escaped with '{{' and '}}'." + Environment.NewLine +
"Parameter name: routeTemplate");
}
@ -708,7 +708,7 @@ namespace Microsoft.AspNetCore.Routing.Template.Tests
{
ExceptionAssert.Throws<ArgumentException>(
() => TemplateParser.Parse("{a}/{a{aa}/{z}"),
"In a route parameter, '{' and '}' must be escaped with '{{' and '}}'" + Environment.NewLine +
"In a route parameter, '{' and '}' must be escaped with '{{' and '}}'." + Environment.NewLine +
"Parameter name: routeTemplate");
}