Fix automation block taglines without bindings
This commit is contained in:
parent
dfe3257993
commit
1c2d90fe3d
|
@ -29,10 +29,11 @@
|
||||||
.replace(/}}/, "}}</b>")
|
.replace(/}}/, "}}</b>")
|
||||||
|
|
||||||
// Extract schema paths for any input bindings
|
// Extract schema paths for any input bindings
|
||||||
const inputPaths = formattedTagline
|
let inputPaths = formattedTagline.match(/{{\s*\S+\s*}}/g) || []
|
||||||
.match(/{{\s*\S+\s*}}/g)
|
inputPaths = inputPaths.map(path => path.replace(/[{}]/g, "").trim())
|
||||||
.map(x => x.replace(/[{}]/g, "").trim())
|
const schemaPaths = inputPaths.map(path =>
|
||||||
const schemaPaths = inputPaths.map(x => x.replace(/\./g, ".properties."))
|
path.replace(/\./g, ".properties.")
|
||||||
|
)
|
||||||
|
|
||||||
// Replace any enum bindings with their pretty equivalents
|
// Replace any enum bindings with their pretty equivalents
|
||||||
schemaPaths.forEach((path, idx) => {
|
schemaPaths.forEach((path, idx) => {
|
||||||
|
|
Loading…
Reference in New Issue