Commit 5bc46716 authored by Douwe Maan's avatar Douwe Maan

No needed to create an array

parent e8a26546
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
backtickCount = backtickMatch[0].length + 1; backtickCount = backtickMatch[0].length + 1;
} }
const backticks = new Array(backtickCount + 1).join('`'); const backticks = Array(backtickCount + 1).join('`');
const spaceOrNoSpace = backtickCount > 1 ? ' ' : ''; const spaceOrNoSpace = backtickCount > 1 ? ' ' : '';
return backticks + spaceOrNoSpace + text + spaceOrNoSpace + backticks; return backticks + spaceOrNoSpace + text + spaceOrNoSpace + backticks;
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
chars = Math.max(chars, 0); chars = Math.max(chars, 0);
const middle = new Array(chars + 1).join('-'); const middle = Array(chars + 1).join('-');
return before + middle + after; return before + middle + after;
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment