소스 검색

fix tag value if statement

pull/662/head
Simon 7 년 전
부모
커밋
9c8cc41de5
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. +4
    -3
      mustache.js

+ 4
- 3
mustache.js 파일 보기

@@ -181,9 +181,10 @@

// Get the tag value.
if (type === '=') {
value = scanner.scanUntil(equalsRe);
scanner.scan(equalsRe);
scanner.scanUntil(closingTagRe);
value = scanner.scanUntil(closingTagRe);
if (value.charAt(value.length - 1) !== '=')
throw new Error('Setting in template failure');
value = value.slice(0, -1).trim();
} else if (type === '{') {
value = scanner.scanUntil(closingCurlyRe);
scanner.scan(curlyRe);


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