mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
Add ability to omit message and/or file area tags from new scan by config 'omitFileAreaTags' and 'omitMessageAreaTags' arrays
This commit is contained in:
parent
53cda734e5
commit
539c25ea83
2 changed files with 18 additions and 3 deletions
|
@ -12,6 +12,7 @@ exports.valueWithDefault = valueWithDefault;
|
|||
exports.resolvePath = resolvePath;
|
||||
exports.getCleanEnigmaVersion = getCleanEnigmaVersion;
|
||||
exports.getEnigmaUserAgent = getEnigmaUserAgent;
|
||||
exports.valueAsArray = valueAsArray;
|
||||
|
||||
function isProduction() {
|
||||
var env = process.env.NODE_ENV || 'dev';
|
||||
|
@ -49,4 +50,11 @@ function getEnigmaUserAgent() {
|
|||
const nodeVer = process.version.substr(1); // remove 'v' prefix
|
||||
|
||||
return `ENiGMA-BBS/${version} (${os.platform()}; ${os.arch()}; ${nodeVer})`;
|
||||
}
|
||||
|
||||
function valueAsArray(value) {
|
||||
if(!value) {
|
||||
return [];
|
||||
}
|
||||
return Array.isArray(value) ? value : [ value ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue