소스 검색

don't die on null values

tags/0.2.3
Elise Wood 16 년 전
부모
커밋
6d6218b713
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js 파일 보기

@@ -194,7 +194,7 @@ var Mustache = function() {
Does away with nasty characters
*/
escape: function(s) {
return s.toString().replace(/[&"<>\\]/g, function(s) {
return (s ? s.toString() : "").replace(/[&"<>\\]/g, function(s) {
switch(s) {
case "&": return "&amp;";
case "\\": return "\\\\";;


불러오는 중...
취소
저장