Skip to content

Commit

Permalink
Merge branch 'master' of github.com:agnat/node_mdns
Browse files Browse the repository at this point in the history
  • Loading branch information
agnat committed Dec 26, 2012
2 parents 367cd92 + e59e0fb commit 9e73477
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/service_type.js
Expand Up @@ -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) }) : []
;

Expand Down Expand Up @@ -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');
}
}
Expand All @@ -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 ' +
Expand Down

0 comments on commit 9e73477

Please sign in to comment.