From 0668abf68c0c3c548ed8a5e68d5846f661a8bf4f Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 25 Jun 2019 15:42:10 +0200 Subject: [PATCH] correct the regular expression for iterating over channels --- storage/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/file.js b/storage/file.js index 6b1285867..f7484a340 100644 --- a/storage/file.js +++ b/storage/file.js @@ -279,7 +279,7 @@ var listChannels = function (root, handler, cb) { list.forEach(function (item) { // ignore things that don't match the naming pattern - if (/^\./.test(item) || !/[0-9a-fA-F]{32,}\.ndjson$/.test(item)) { return; } + if (/^\./.test(item) || !/[0-9a-fA-F]{32}\.ndjson$/.test(item)) { return; } var filepath = Path.join(nestedDirPath, item); var channel = filepath.replace(/\.ndjson$/, '').replace(/.*\//, ''); if ([32, 34].indexOf(channel.length) === -1) { return; }