mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
ESlint one-var, fix comma-dangle
This commit is contained in:
@@ -49,7 +49,9 @@ module.exports = function (Posts) {
|
||||
|
||||
Posts.relativeToAbsolute = function (content) {
|
||||
// Turns relative links in post body to absolute urls
|
||||
var parsed, current, absolute;
|
||||
var parsed;
|
||||
var current;
|
||||
var absolute;
|
||||
|
||||
while ((current = urlRegex.exec(content)) !== null) {
|
||||
if (current[1]) {
|
||||
@@ -76,8 +78,8 @@ module.exports = function (Posts) {
|
||||
};
|
||||
|
||||
function sanitizeSignature(signature) {
|
||||
var string = S(signature),
|
||||
tagsToStrip = [];
|
||||
var string = S(signature);
|
||||
var tagsToStrip = [];
|
||||
|
||||
if (parseInt(meta.config['signatures:disableLinks'], 10) === 1) {
|
||||
tagsToStrip.push('a');
|
||||
|
||||
Reference in New Issue
Block a user