mirror of https://github.com/xwiki-labs/cryptpad
Fix typo in regex when listing channels
This commit is contained in:
parent
a0d627f652
commit
cf17b6924a
|
@ -623,7 +623,7 @@ var listChannels = function (root, handler, cb, fast) {
|
|||
var metadataName;
|
||||
|
||||
// if the current file is not the channel data, then it must be metadata
|
||||
if (!/^[0-9a-fA-F]{32, 33}\.ndjson$/.test(item)) {
|
||||
if (!/^[0-9a-fA-F]{32,33}\.ndjson$/.test(item)) {
|
||||
metadataName = item;
|
||||
|
||||
channelName = item.replace(/\.metadata/, '');
|
||||
|
|
Loading…
Reference in New Issue