scanPlaceholders()
function scanPlaceholders(text): string | string[];Splits text on {{ ... }} placeholders and returns the expression sources,
or an error message when a placeholder is unterminated or empty.
{{ can be written literally as \{{.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
Returns
Section titled “Returns”string | string[]