ci: update preset examples generator [skip ci]
This commit is contained in:
2
.github/scripts/presets_examples.mjs
vendored
2
.github/scripts/presets_examples.mjs
vendored
@@ -33,7 +33,7 @@ action.run = async vars =>
|
|||||||
child.stderr.on("data", data => stderr += data)
|
child.stderr.on("data", data => stderr += data)
|
||||||
child.on("close", code => {
|
child.on("close", code => {
|
||||||
if (code === 0)
|
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)
|
console.log(stdout, stderr)
|
||||||
reject(stdout)
|
reject(stdout)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user