Update regular expressions in data.go

This commit is contained in:
Max 2024-01-17 19:17:42 +08:00
parent f2f3fa354f
commit a87bc73753

View file

@ -12,8 +12,8 @@ import (
)
// If set the map value, should keep the space at the end of the statement
var stmtRe = regexp.MustCompile(`\{\{(.*?)\}\}`)
var propRe = regexp.MustCompile(`\[\{(.*?)\}\]`)
var stmtRe = regexp.MustCompile(`\{\{([\s\S]*?)\}\}`)
var propRe = regexp.MustCompile(`\[\{([\s\S]*?)\}\]`)
// Data data for the template
type Data map[string]interface{}