Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #60 from domachine/fix/weird-characters

Remove weird characters
  • Loading branch information...
commit 72a8fe00f839167c567aea2730f2686fdd894260 2 parents 3ea5315 + e457580
@Baggz authored
View
6 releases/latest/amanda.js
@@ -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.');
return callback();
}
@@ -830,6 +830,7 @@ Validation.prototype.addAttributeConstructor('format', function formatConstructo
});
+
/**
* Length
*/
@@ -1135,7 +1136,7 @@ Validation.prototype.addAttributeConstructor('type', typeConstructor);
propertyValue.forEach(function(subValue, subIndex) {
if (subIndex !== index) {
- if (isEqual(value, subValue)) {
+ if (isEqual(value, subValue)) {
self.addError({
property: self.joinPath(property, subIndex)
});
@@ -1156,6 +1157,7 @@ Validation.prototype.addAttributeConstructor('type', typeConstructor);
}());
+
/**
* Error
*
View
4 src/engines/json/attributes/format.js
@@ -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.');
return callback();
}
@@ -252,4 +252,4 @@ Validation.prototype.addAttributeConstructor('format', function formatConstructo
};
-});
+});
View
4 src/engines/json/attributes/uniqueItems.js
@@ -19,7 +19,7 @@
propertyValue.forEach(function(subValue, subIndex) {
if (subIndex !== index) {
- if (isEqual(value, subValue)) {
+ if (isEqual(value, subValue)) {
self.addError({
property: self.joinPath(property, subIndex)
});
@@ -38,4 +38,4 @@
// Export
Validation.prototype.addAttribute('uniqueItems', attribute);
-}());
+}());
Please sign in to comment.
Something went wrong with that request. Please try again.