ci: update preset examples generator [skip ci]
This commit is contained in:
6
.github/scripts/presets_examples.mjs
vendored
6
.github/scripts/presets_examples.mjs
vendored
@@ -32,8 +32,10 @@ action.run = async vars =>
|
|||||||
child.stdout.on("data", data => stdout += data)
|
child.stdout.on("data", data => stdout += data)
|
||||||
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>)/g)?.groups.svg ?? `<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"/>`)
|
console.log(stdout)
|
||||||
|
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