amis-formula 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/doc.js +99 -99
- package/esm/doc.md +149 -147
- package/esm/error.js +1 -1
- package/esm/evalutor.d.ts +158 -147
- package/esm/evalutor.js +159 -148
- package/esm/evalutorForAsync.js +1 -1
- package/esm/filter.js +1 -1
- package/esm/function.js +1 -1
- package/esm/index.js +1 -1
- package/esm/lexer.js +2 -2
- package/esm/parser.js +1 -1
- package/lib/doc.js +99 -99
- package/lib/doc.md +149 -147
- package/lib/error.js +1 -1
- package/lib/evalutor.d.ts +158 -147
- package/lib/evalutor.js +159 -148
- package/lib/evalutorForAsync.js +1 -1
- package/lib/filter.js +1 -1
- package/lib/function.js +1 -1
- package/lib/index.js +1 -1
- package/lib/lexer.js +2 -2
- package/lib/parser.js +1 -1
- package/package.json +7 -2
package/esm/evalutorForAsync.js
CHANGED
package/esm/filter.js
CHANGED
package/esm/function.js
CHANGED
package/esm/index.js
CHANGED
package/esm/lexer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-formula v3.
|
|
2
|
+
* amis-formula v3.2.0
|
|
3
3
|
* Copyright 2021-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -655,7 +655,7 @@ function lexer(input, options) {
|
|
|
655
655
|
// 所以纯变量模式支持纯数字作为变量名
|
|
656
656
|
var reg = (options === null || options === void 0 ? void 0 : options.variableMode)
|
|
657
657
|
? /^[\u4e00-\u9fa5A-Za-z0-9_$@][\u4e00-\u9fa5A-Za-z0-9_\-$@]*/
|
|
658
|
-
: /^(?:[\u4e00-\u9fa5A-Za-z_$@]([\u4e00-\u9fa5A-Za-z0-9_
|
|
658
|
+
: /^(?:[\u4e00-\u9fa5A-Za-z_$@]([\u4e00-\u9fa5A-Za-z0-9_$@]|\\(?:\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,))*|\d+[\u4e00-\u9fa5A-Za-z_$@](?:[\u4e00-\u9fa5A-Za-z0-9_$@]|\\(?:\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,))*)/;
|
|
659
659
|
var match = reg.exec(input.substring(index, index + 256) // 变量长度不能超过 256
|
|
660
660
|
);
|
|
661
661
|
if (match) {
|
package/esm/parser.js
CHANGED