aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/linkwiz.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scripts/linkwiz.js')
-rw-r--r--lib/scripts/linkwiz.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/linkwiz.js b/lib/scripts/linkwiz.js
index d34ef3899..cd0c1d7f0 100644
--- a/lib/scripts/linkwiz.js
+++ b/lib/scripts/linkwiz.js
@@ -398,7 +398,7 @@ class LinkWizard {
// namespaces are irrelevant
} else if (commonPrefixLength < sourceNs.length) {
// add .. for each missing namespace from common to the target
- relativeID.push('..'.repeat(sourceNs.length - commonPrefixLength));
+ relativeID.push(...Array(sourceNs.length - commonPrefixLength).fill('..'));
} else {
// target is below common prefix, add .
relativeID.push('.');