mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -91,7 +91,7 @@ module.exports = function (Posts) {
|
||||
absolute = nconf.get('base_url') + current[1];
|
||||
} else {
|
||||
// External link
|
||||
absolute = '//' + current[1];
|
||||
absolute = `//${current[1]}`;
|
||||
}
|
||||
|
||||
content = content.slice(0, current.index + regex.length) + absolute + content.slice(current.index + regex.length + current[1].length);
|
||||
|
||||
Reference in New Issue
Block a user