Skip to content

Commit

Permalink
Removing spurious escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
dLuna committed Apr 10, 2013
1 parent 4f97c50 commit 66de8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mustache.erl
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ render(Mod, CompiledTemplate, CtxData) ->
lists:flatten(CompiledTemplate(Ctx1)).

pre_compile(T, State) ->
SectionRE = "\{\{(\#|\\^)([^\}]*)}}\s*(.+?){{\/\\2\}\}\s*",
SectionRE = "{{(#|\\^)([^}]*)}}\s*(.+?){{/\\2}}\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) -> " ++
Expand Down

0 comments on commit 66de8d6

Please sign in to comment.