Selaa lähdekoodia

Support for partial paths (fixes #91)

Uses the work done by @nateware in pull request 92. Thanks!
tags/0.4.0
Michael Jackson 14 vuotta sitten
vanhempi
commit
bf95689f42
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Näytä tiedosto

@@ -244,7 +244,7 @@ var Mustache = function () {


var new_regex = function () { var new_regex = function () {
return that.getCachedRegex("render_tags", function (otag, ctag) { return that.getCachedRegex("render_tags", function (otag, ctag) {
return new RegExp(otag + "(=|!|>|\\{|%)?([^\\/#\\^]+?)\\1?" + ctag + "+", "g");
return new RegExp(otag + "(=|!|>|\\{|%)?([^#\\^]+?)\\1?" + ctag + "+", "g");
}); });
}; };




Loading…
Peruuta
Tallenna