Commit 55fe3ba5 authored by astaxie's avatar astaxie

update tempalte's regexp

parent de2dd6e0
......@@ -132,7 +132,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, er
if err != nil {
return nil, err
}
reg := regexp.MustCompile("{{template \"(.+)\"")
reg := regexp.MustCompile("{{[ ]*template[ ]+\"([^\"]+)\"")
allsub := reg.FindAllStringSubmatch(string(data), -1)
for _, m := range allsub {
if len(m) == 2 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment