Update regular expressions in data.go
This commit is contained in:
parent
f2f3fa354f
commit
a87bc73753
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// If set the map value, should keep the space at the end of the statement
|
// If set the map value, should keep the space at the end of the statement
|
||||||
var stmtRe = regexp.MustCompile(`\{\{(.*?)\}\}`)
|
var stmtRe = regexp.MustCompile(`\{\{([\s\S]*?)\}\}`)
|
||||||
var propRe = regexp.MustCompile(`\[\{(.*?)\}\]`)
|
var propRe = regexp.MustCompile(`\[\{([\s\S]*?)\}\]`)
|
||||||
|
|
||||||
// Data data for the template
|
// Data data for the template
|
||||||
type Data map[string]interface{}
|
type Data map[string]interface{}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue