Skip to content

Commit

Permalink
%{} is index_render
Browse files Browse the repository at this point in the history
modified:   value_render/value_render.go
  • Loading branch information
childe committed Mar 14, 2019
1 parent cdd63c2 commit 0a0bfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion value_render/value_render.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func GetValueRender(template string) ValueRender {
func GetValueRender2(template string) ValueRender {
matchp, _ := regexp.Compile(`^(\[.*?\])+$`)
matchGoTemp, _ := regexp.Compile(`{{.*}}`)
matchESIndex, _ := regexp.Compile(`%{\+.*?}`) //%{+YYYY.MM.dd}
matchESIndex, _ := regexp.Compile(`%{.*?}`) //%{+YYYY.MM.dd}

if matchp.Match([]byte(template)) {
findp, _ := regexp.Compile(`(\[(.*?)\])`)
Expand Down

0 comments on commit 0a0bfe0

Please sign in to comment.