-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensure that media params remain string values #558
Conversation
function split(params, start) { | ||
const list = [] | ||
const last = params.reduce((item, node, index) => { | ||
if (index < start) return "" | ||
if (node.type === "div" && node.value === ",") { | ||
list.push(item) | ||
return "" | ||
} | ||
return item + stringify(node) | ||
}, "") | ||
list.push(last) | ||
return list | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I overlooked that this was still present and JavaScript automatically joins arrays of strings with ,
.
This entire section has become redundant with the refactors for v16
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good; should we add a test case with the reproduction from #557?
62dae71
to
2d1301c
Compare
Thank you for reviewing @RyanZim 🙇 I've added a separate plugin that always runs after It tests a few more things than just |
fixes : #557