git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: fd1ede87dfa5cdbb403b2eb9ea5406a1a6570755

Files: fd1ede87dfa5cdbb403b2eb9ea5406a1a6570755 / lib / normalize-channel.js

202 bytesRaw
1module.exports = function (channel) {
2 if (typeof channel === 'string') {
3 channel = channel.replace(/\s/g, '')
4 if (channel.length > 0 && channel.length < 30) {
5 return channel
6 }
7 }
8}
9

Built with git-ssb-web