mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 14:50:47 +01:00
fix lint
This commit is contained in:
committed by
Julian Lam
parent
4b94c033c4
commit
9ed6961af8
@@ -70,12 +70,11 @@ module.exports = function (User) {
|
||||
|
||||
let line = '';
|
||||
usersData.forEach((user, index) => {
|
||||
line += `${fields.map(field => {
|
||||
if ( /^\d+$/.test(user[field])) {
|
||||
return `'${user[field]}'`;
|
||||
}
|
||||
return user[field]
|
||||
}).join(',')}`;
|
||||
line += `${fields
|
||||
.map((field) =>
|
||||
isFinite(user[field]) ? `'${user[field]}'` : user[field]
|
||||
)
|
||||
.join(",")}`;
|
||||
if (showIps) {
|
||||
userIPs = ips[index] ? ips[index].join(',') : '';
|
||||
line += `,"${userIPs}"\n`;
|
||||
|
||||
Reference in New Issue
Block a user