summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-05-05 10:40:50 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-05-05 10:40:50 -0400
commit0883a6eca754f5442b8c9d273d7fc0be1b768dec (patch)
tree43ddfbc97bbf44fcf6f2fa083cc5e5888e2f21e7
parent8642e923c6fd9f1887b3499b3c92069eed875d22 (diff)
parenta6bd9be2a2d17ca32fc8f323be2bfaf3f514a5f4 (diff)
Merge pull request #390 from tsloughter/mustache_bug
fix }}} bug in mustache
-rw-r--r--src/rebar_mustache.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_mustache.erl b/src/rebar_mustache.erl
index 9016c0f..3fc21b5 100644
--- a/src/rebar_mustache.erl
+++ b/src/rebar_mustache.erl
@@ -84,7 +84,7 @@ render(Mod, CompiledTemplate, Ctx) ->
pre_compile(T, State) ->
SectionRE = "\{\{\#([^\}]*)}}\s*(.+?){{\/\\1\}\}\s*",
{ok, CompiledSectionRE} = re:compile(SectionRE, [dotall]),
- TagRE = "\{\{(#|=|!|<|>|\{)?(.+?)\\1?\}\}+",
+ TagRE = "\{\{(#|=|!|<|>|\{)?(.+?)\\1?\}\}",
{ok, CompiledTagRE} = re:compile(TagRE, [dotall]),
State2 = State#mstate{section_re = CompiledSectionRE, tag_re = CompiledTagRE},
"fun(Ctx) -> " ++