summaryrefslogtreecommitdiffstats
path: root/abs/extra/remyth/service_type.js.patch
blob: ef1feca947c5f3ae7b6088a38e6f2067d293d719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- node_modules/mdns/lib/service_type.js.orig	2012-11-05 02:42:27.910994908 +0000
+++ node_modules/mdns/lib/service_type.js	2012-11-05 02:43:26.784326471 +0000
@@ -156,8 +156,8 @@
   if (str.length === 0) {
     throw new Error('type ' + str + ' must not be empty');
   }
-  if (str.length > 14) {
-    throw new Error('type ' + str + ' has more than 14 characters');
+  if (str.length > 24) {
+    throw new Error('type ' + str + ' has more than 24 characters');
   }
   if (str.match(charset_regex)) {
     throw new Error('type ' + str + ' may only contain alphanumeric ' + 
@@ -170,8 +170,8 @@
   if (str.length === 0) {
     throw new Error('type string must not be empty');
   }
-  if (str.length > 15) {
-    throw new Error('type ' + _uu(str) + ' has more than 14 characters');
+  if (str.length > 25) {
+    throw new Error('type ' + _uu(str) + ' has more than 24 characters');
   }
   if ( ! str.match(format_regex)) {
     throw new Error('type ' + str + ' must start with an underscore ' +