Skip to content

Commit

Permalink
修改配置了escape不生效的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
吕晨阳 committed Jun 12, 2017
1 parent 45bb7f7 commit 1234e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,5 @@
.vscode
coverage
node_modules
npm-debug.log
npm-debug.log
.idea
2 changes: 1 addition & 1 deletion lib/compile/compiler.js
Expand Up @@ -242,7 +242,7 @@ var Compiler = function () {
var code = script.code;

if (output) {
if (escape === false || output === tplTokenizer.TYPE_RAW) {
if (this.options.escape === false || output === tplTokenizer.TYPE_RAW) {
code = OUT + '+=' + script.code;
} else {
code = OUT + '+=' + ESCAPE + '(' + script.code + ')';
Expand Down

0 comments on commit 1234e00

Please sign in to comment.