Permalink
Browse files

Merge branch 'master' of github.com:agnat/node_mdns

  • Loading branch information...
2 parents 367cd92 + e59e0fb commit 9e734778798e0ff6c15dc07cf8cebf6d732249ae @agnat committed Dec 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/service_type.js
View
@@ -105,7 +105,7 @@ ServiceType.prototype.fromJSON = function fromJSON(obj) {
var service_type = _uu(obj.name)
, protocol = _uu(obj.protocol)
- , subtypes = 'subtypes' in obj ?
+ , subtypes = 'subtypes' in obj ?
obj.subtypes.map(function(t) { return _uu(t) }) : []
;
@@ -160,7 +160,7 @@ function checkLengthAndCharset(str) {
throw new Error('type ' + str + ' has more than 14 characters');
}
if (str.match(charset_regex)) {
- throw new Error('type ' + str + ' may only contain alphanumeric ' +
+ throw new Error('type ' + str + ' may only contain alphanumeric ' +
'characters and hyphens');
}
}
@@ -171,7 +171,7 @@ function checkFormat(str) {
throw new Error('type string must not be empty');
}
if (str.length > 15) {
- throw new Error('type ' + _uu(str) + ' has more than 14 characters');
+ throw new Error('type ' + _uu(str) + ' has more than 15 characters');
}
if ( ! str.match(format_regex)) {
throw new Error('type ' + str + ' must start with an underscore ' +

0 comments on commit 9e73477

Please sign in to comment.