From b43fbd299df0aa93cfc440187ee87ae4e794a5d4 Mon Sep 17 00:00:00 2001 From: Jaroslaw Waliszko Date: Fri, 28 Aug 2015 23:25:00 +0200 Subject: [PATCH] Typos. --- src/ExpressiveAnnotations/Attributes/ExpressiveAttribute.cs | 3 +-- src/expressive.annotations.validate.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ExpressiveAnnotations/Attributes/ExpressiveAttribute.cs b/src/ExpressiveAnnotations/Attributes/ExpressiveAttribute.cs index c76d5f0..a6db4c1 100644 --- a/src/ExpressiveAnnotations/Attributes/ExpressiveAttribute.cs +++ b/src/ExpressiveAnnotations/Attributes/ExpressiveAttribute.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; -using System.Text; using System.Text.RegularExpressions; using ExpressiveAnnotations.Analysis; @@ -273,7 +272,7 @@ private void ExtractValuesForMessage(ValidationContext validationContext) throw new FormatException("Input string was not in a correct format."); var length = leftBraces.Length; - // flatten each pair of braces (curly brackets) into single artifact + // flatten each pair of braces (curly brackets) into single brace // in order to escape them - to output a { use {{ and to output a } use }} (just like standard string.Format does) var left = new string('{', length/2); var right = new string('}', length/2); diff --git a/src/expressive.annotations.validate.js b/src/expressive.annotations.validate.js index 656db94..6b26038 100644 --- a/src/expressive.annotations.validate.js +++ b/src/expressive.annotations.validate.js @@ -558,7 +558,7 @@ var throw 'Input string was not in a correct format.'; length = leftBraces.length; - // flatten each pair of braces (curly brackets) into single artifact, in order to escape them + // flatten each pair of braces (curly brackets) into single brace left = new Array(parseInt(length / 2) + 1).join('{'); right = new Array(parseInt(length / 2) + 1).join('}');