mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: eslint max-len
This commit is contained in:
committed by
Julian Lam
parent
5c2f0f0557
commit
cc9d6fd08b
@@ -94,7 +94,9 @@ module.exports = function (Posts) {
|
||||
absolute = `//${current[1]}`;
|
||||
}
|
||||
|
||||
content = content.slice(0, current.index + regex.length) + absolute + content.slice(current.index + regex.length + current[1].length);
|
||||
content = content.slice(0, current.index + regex.length) +
|
||||
absolute +
|
||||
content.slice(current.index + regex.length + current[1].length);
|
||||
}
|
||||
} catch (err) {
|
||||
winston.verbose(err.messsage);
|
||||
@@ -117,7 +119,10 @@ module.exports = function (Posts) {
|
||||
Posts.configureSanitize = async () => {
|
||||
// Each allowed tags should have some common global attributes...
|
||||
sanitizeConfig.allowedTags.forEach((tag) => {
|
||||
sanitizeConfig.allowedAttributes[tag] = _.union(sanitizeConfig.allowedAttributes[tag], sanitizeConfig.globalAttributes);
|
||||
sanitizeConfig.allowedAttributes[tag] = _.union(
|
||||
sanitizeConfig.allowedAttributes[tag],
|
||||
sanitizeConfig.globalAttributes
|
||||
);
|
||||
});
|
||||
|
||||
// Some plugins might need to adjust or whitelist their own tags...
|
||||
|
||||
Reference in New Issue
Block a user