We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c67eac1 commit fca9483Copy full SHA for fca9483
index.js
@@ -29,7 +29,7 @@ function applyGradient(str, gradient, opts) {
29
function multilineGradient(str, gradient, opts) {
30
const options = validateOptions(opts);
31
const lines = str.split('\n');
32
- const maxLength = Math.max(gradient.stops.length, ...(lines.map(l => l.length)));
+ const maxLength = Math.max.apply(null, lines.map(l => l.length).concat([gradient.stops.length]));
33
const colors = getColors(gradient, options, maxLength);
34
const results = [];
35
for (const line of lines) {
0 commit comments