From bf95689f4282d0a60162e8e093933c8cd07c73f1 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 28 Dec 2011 12:31:16 -0800 Subject: [PATCH] Support for partial paths (fixes #91) Uses the work done by @nateware in pull request 92. Thanks! --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index cc42f3d..1ff6d08 100644 --- a/mustache.js +++ b/mustache.js @@ -244,7 +244,7 @@ var Mustache = function () { var new_regex = function () { return that.getCachedRegex("render_tags", function (otag, ctag) { - return new RegExp(otag + "(=|!|>|\\{|%)?([^\\/#\\^]+?)\\1?" + ctag + "+", "g"); + return new RegExp(otag + "(=|!|>|\\{|%)?([^#\\^]+?)\\1?" + ctag + "+", "g"); }); };