Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9e734778798e0ff6c15dc07cf8cebf6d732249ae 2 parents 367cd92 + e59e0fb
@agnat authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/service_type.js
View
6 lib/service_type.js
@@ -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 ' +
Please sign in to comment.
Something went wrong with that request. Please try again.