mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: unnecessary escape
This commit is contained in:
@@ -99,7 +99,7 @@ module.exports = function (Posts) {
|
||||
files = files.filter(filename => filename !== '.gitignore');
|
||||
|
||||
// Exclude non-timestamped files (e.g. group covers; see gh#10783/gh#10705)
|
||||
const tsPrefix = /^\d{13}\-/;
|
||||
const tsPrefix = /^\d{13}-/;
|
||||
files = files.filter(filename => tsPrefix.test(filename));
|
||||
|
||||
files = await Promise.all(files.map(async filename => (await Posts.uploads.isOrphan(`files/${filename}`) ? `files/${filename}` : null)));
|
||||
|
||||
Reference in New Issue
Block a user