More flexible placeholder match

This commit is contained in:
Gregory Schier
2024-07-31 07:42:18 -07:00
parent 082be6e1dd
commit a3988188f3

View File

@@ -36,7 +36,7 @@ class PlaceholderWidget extends WidgetType {
export const placeholders = function (variables: { name: string }[]) {
const placeholderMatcher = new BetterMatchDecorator({
regexp: /\$\{\[\s*([^\]\s]+)\s*]}/g,
regexp: /\$\{\[\s*([^\]]+)\s*]}/g,
decoration(match, view, matchStartPos) {
const matchEndPos = matchStartPos + match[0].length - 1;