mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-13 01:03:35 +02:00
@@ -14,11 +14,11 @@ function filterDirectories(directories) {
|
||||
// get the relative path
|
||||
return dir.replace(/^.*(admin.*?).tpl$/, '$1');
|
||||
}).filter(function (dir) {
|
||||
// exclude .jst files
|
||||
// exclude .js files
|
||||
// exclude partials
|
||||
// only include subpaths
|
||||
// exclude category.tpl, group.tpl, category-analytics.tpl
|
||||
return !dir.endsWith('.jst') &&
|
||||
return !dir.endsWith('.js') &&
|
||||
!dir.includes('/partials/') &&
|
||||
/\/.*\//.test(dir) &&
|
||||
!/manage\/(category|group|category-analytics)$/.test(dir);
|
||||
|
||||
Reference in New Issue
Block a user