1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

Fix automation block taglines without bindings

This commit is contained in:
Andrew Kingston 2020-09-22 15:42:56 +01:00
parent ad6002293e
commit d465d30827

View file

@ -29,10 +29,11 @@
.replace(/}}/, "}}</b>")
// Extract schema paths for any input bindings
const inputPaths = formattedTagline
.match(/{{\s*\S+\s*}}/g)
.map(x => x.replace(/[{}]/g, "").trim())
const schemaPaths = inputPaths.map(x => x.replace(/\./g, ".properties."))
let inputPaths = formattedTagline.match(/{{\s*\S+\s*}}/g) || []
inputPaths = inputPaths.map(path => path.replace(/[{}]/g, "").trim())
const schemaPaths = inputPaths.map(path =>
path.replace(/\./g, ".properties.")
)
// Replace any enum bindings with their pretty equivalents
schemaPaths.forEach((path, idx) => {