ci: update preset examples generator [skip ci]

This commit is contained in:
lowlighter
2022-01-26 21:27:17 -05:00
parent 1a82de5b1f
commit 57d1099407

View File

@@ -33,7 +33,7 @@ action.run = async vars =>
child.stderr.on("data", data => stderr += data)
child.on("close", code => {
if (code === 0)
return solve(stdout.match(/(?<svg><svg [\s\S]+<\/svg>)/)?.groups.svg ?? "")
return solve(stdout.match(/(?<svg><svg [\s\S]+<\/svg>)/g)?.groups.svg ?? `<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"/>`)
console.log(stdout, stderr)
reject(stdout)
})