correct validation for 'channelName'

This commit is contained in:
ansuz 2018-01-24 11:31:34 +01:00
parent 4e8335bfdd
commit a5b7b0191f

View File

@ -9,7 +9,7 @@ const Pull = require('pull-stream');
const isValidChannelId = function (id) { const isValidChannelId = function (id) {
return typeof(id) === 'string' && return typeof(id) === 'string' &&
[32, 48].indexOf(id.length) > -1 && id.length >= 32 && id.length < 50 &&
/^[a-zA-Z0-9=+-]*$/.test(id); /^[a-zA-Z0-9=+-]*$/.test(id);
}; };