mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
chore: eslint max-len
This commit is contained in:
committed by
Julian Lam
parent
5c2f0f0557
commit
cc9d6fd08b
@@ -646,7 +646,10 @@
|
||||
params.forEach(function (param) {
|
||||
var val = param.split('=');
|
||||
var key = decodeURI(val[0]);
|
||||
var value = options.disableToType || options.skipToType[key] ? decodeURI(val[1]) : utils.toType(decodeURI(val[1]));
|
||||
var value = (
|
||||
options.disableToType ||
|
||||
options.skipToType[key] ? decodeURI(val[1]) : utils.toType(decodeURI(val[1]))
|
||||
);
|
||||
|
||||
if (key) {
|
||||
if (key.substr(-2, 2) === '[]') {
|
||||
@@ -732,8 +735,11 @@
|
||||
isInternalURI: function (targetLocation, referenceLocation, relative_path) {
|
||||
return targetLocation.host === '' || // Relative paths are always internal links
|
||||
(
|
||||
targetLocation.host === referenceLocation.host && targetLocation.protocol === referenceLocation.protocol && // Otherwise need to check if protocol and host match
|
||||
(relative_path.length > 0 ? targetLocation.pathname.indexOf(relative_path) === 0 : true) // Subfolder installs need this additional check
|
||||
targetLocation.host === referenceLocation.host &&
|
||||
// Otherwise need to check if protocol and host match
|
||||
targetLocation.protocol === referenceLocation.protocol &&
|
||||
// Subfolder installs need this additional check
|
||||
(relative_path.length > 0 ? targetLocation.pathname.indexOf(relative_path) === 0 : true)
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user