refactor: removed redundant escape characters from the `unresolvedVariablesRegex` variable

dev
forgedhallpass 2022-01-17 13:32:47 +02:00
parent 7f6c72853f
commit ae07dce014
1 changed files with 1 additions and 1 deletions

View File

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