update tempalte's regexp
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -132,7 +132,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, er | ... | @@ -132,7 +132,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, er |
| 132 | if err != nil { | 132 | if err != nil { |
| 133 | return nil, err | 133 | return nil, err |
| 134 | } | 134 | } |
| 135 | reg := regexp.MustCompile("{{template \"(.+)\"") | 135 | reg := regexp.MustCompile("{{[ ]*template[ ]+\"([^\"]+)\"") |
| 136 | allsub := reg.FindAllStringSubmatch(string(data), -1) | 136 | allsub := reg.FindAllStringSubmatch(string(data), -1) |
| 137 | for _, m := range allsub { | 137 | for _, m := range allsub { |
| 138 | if len(m) == 2 { | 138 | if len(m) == 2 { | ... | ... |
-
Please register or sign in to post a comment