Skip to content

Commit

Permalink
fix: template 表达式中不支持 % 运算符
Browse files Browse the repository at this point in the history
  • Loading branch information
meixg committed May 21, 2021
1 parent 3901ee6 commit 21d414f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ coverage
vendor/
/dist/
test/cases/*/ssr.js
test/cases/*/ssr.php
test/cases/*/ssr.php
.vscode
1 change: 1 addition & 0 deletions src/compilers/san-expr-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export enum OutputType {

// 二元表达式操作符映射表
const binaryOp = {
37: '%',
43: '+',
45: '-',
42: '*',
Expand Down

0 comments on commit 21d414f

Please sign in to comment.