Fixed variable check regex

dev
Ice3man543 2021-10-07 01:48:10 +05:30
parent ce13bf34d0
commit 92857497f3
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import (
"strings"
)
var unresolvedVariablesRegex = regexp.MustCompile(`\{\{(.+)\}\}`)
var unresolvedVariablesRegex = regexp.MustCompile(`\{\{([^}]+)\}\}["'\)\}]*`)
// ContainsUnresolvedVariables returns an error with variable names if the passed
// input contains unresolved {{<pattern-here>}} variables.