File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# mustache.js Changes
2
2
3
+ ## 0.4.1-dev (2/15/2012)
4
+
5
+ * fixed greedy parsing of section name in regexp
6
+
7
+ ## 0.4.0 (1/4/2012)
8
+
3
9
## 0.3.1-dev-twitter-b (8/23/2011)
4
10
5
11
* Cached regexes for improved performance
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ var Mustache = function () {
40
40
"<" : "<" ,
41
41
">" : ">" ,
42
42
'"' : '"' ,
43
- "'" : '' ;'
43
+ "'" : '&apos ;'
44
44
} ;
45
45
46
46
function escapeHTML ( string ) {
@@ -176,7 +176,7 @@ var Mustache = function () {
176
176
"^([\\s\\S]*?)" + // all the crap at the beginning that is not {{*}} ($1)
177
177
178
178
otag + // {{
179
- "(\\^|\\#)\\s*(.+)\\s*" + // #foo (# == $2, foo == $3)
179
+ "(\\^|\\#)\\s*(.+? )\\s*" + // #foo (# == $2, foo == $3), not greedy
180
180
ctag + // }}
181
181
182
182
"\n*([\\s\\S]*?)" + // between the tag ($2). leading newlines are dropped
@@ -417,7 +417,7 @@ var Mustache = function () {
417
417
418
418
return ( {
419
419
name : "mustache.js" ,
420
- version : "0.4.0 " ,
420
+ version : "0.4.1-dev " ,
421
421
422
422
/*
423
423
Turns a template and view into HTML
You can’t perform that action at this time.
0 commit comments