Skip to content

Commit

Permalink
Merge pull request #60 from domachine/fix/weird-characters
Browse files Browse the repository at this point in the history
Remove weird characters
  • Loading branch information
František Hába committed Jul 7, 2013
2 parents 3ea5315 + e457580 commit 72a8fe0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions releases/latest/amanda.js
Expand Up @@ -797,7 +797,7 @@ Validation.prototype.addAttributeConstructor('format', function formatConstructo
* ... * ...
* } * }
*/ */
if (isString(attributeValue) && !hasProperty(formats, attributeValue)) { if (isString(attributeValue) && !hasProperty(formats, attributeValue)) {
this.addError('The format ‘' + attributeValue + '’ is not supported.'); this.addError('The format ‘' + attributeValue + '’ is not supported.');
return callback(); return callback();
} }
Expand Down Expand Up @@ -830,6 +830,7 @@ Validation.prototype.addAttributeConstructor('format', function formatConstructo


}); });



/** /**
* Length * Length
*/ */
Expand Down Expand Up @@ -1135,7 +1136,7 @@ Validation.prototype.addAttributeConstructor('type', typeConstructor);
propertyValue.forEach(function(subValue, subIndex) { propertyValue.forEach(function(subValue, subIndex) {


if (subIndex !== index) { if (subIndex !== index) {
if (isEqual(value, subValue)) { if (isEqual(value, subValue)) {
self.addError({ self.addError({
property: self.joinPath(property, subIndex) property: self.joinPath(property, subIndex)
}); });
Expand All @@ -1156,6 +1157,7 @@ Validation.prototype.addAttributeConstructor('type', typeConstructor);


}()); }());



/** /**
* Error * Error
* *
Expand Down
4 changes: 2 additions & 2 deletions src/engines/json/attributes/format.js
Expand Up @@ -221,7 +221,7 @@ Validation.prototype.addAttributeConstructor('format', function formatConstructo
* ... * ...
* } * }
*/ */
if (isString(attributeValue) && !hasProperty(formats, attributeValue)) { if (isString(attributeValue) && !hasProperty(formats, attributeValue)) {
this.addError('The format ‘' + attributeValue + '’ is not supported.'); this.addError('The format ‘' + attributeValue + '’ is not supported.');
return callback(); return callback();
} }
Expand Down Expand Up @@ -252,4 +252,4 @@ Validation.prototype.addAttributeConstructor('format', function formatConstructo


}; };


}); });
4 changes: 2 additions & 2 deletions src/engines/json/attributes/uniqueItems.js
Expand Up @@ -19,7 +19,7 @@
propertyValue.forEach(function(subValue, subIndex) { propertyValue.forEach(function(subValue, subIndex) {


if (subIndex !== index) { if (subIndex !== index) {
if (isEqual(value, subValue)) { if (isEqual(value, subValue)) {
self.addError({ self.addError({
property: self.joinPath(property, subIndex) property: self.joinPath(property, subIndex)
}); });
Expand All @@ -38,4 +38,4 @@
// Export // Export
Validation.prototype.addAttribute('uniqueItems', attribute); Validation.prototype.addAttribute('uniqueItems', attribute);


}()); }());

0 comments on commit 72a8fe0

Please sign in to comment.