amis-formula 6.14.0-beta.0 → 6.14.0-beta.2
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 +1 -1
- package/esm/error.js +1 -1
- package/esm/evalutor.js +1 -1
- 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 +5 -1
- package/esm/parser.js +1 -1
- package/lib/doc.js +1 -1
- package/lib/error.js +1 -1
- package/lib/evalutor.js +1 -1
- 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 +5 -1
- package/lib/parser.js +1 -1
- package/package.json +1 -1
package/esm/doc.js
CHANGED
package/esm/error.js
CHANGED
package/esm/evalutor.js
CHANGED
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 v6.14.0-beta.
|
|
2
|
+
* amis-formula v6.14.0-beta.2
|
|
3
3
|
* Copyright 2021-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -569,6 +569,10 @@ function lexer(input, options) {
|
|
|
569
569
|
else if (isExp(char_1)) {
|
|
570
570
|
state = numberStates.EXP;
|
|
571
571
|
}
|
|
572
|
+
else if (isDigit(char_1)) { // 添加这个条件
|
|
573
|
+
passedValueIndex = i + 1;
|
|
574
|
+
state = numberStates.DIGIT; // 转换到DIGIT状态
|
|
575
|
+
}
|
|
572
576
|
else {
|
|
573
577
|
break iterator;
|
|
574
578
|
}
|
package/esm/parser.js
CHANGED
package/lib/doc.js
CHANGED
package/lib/error.js
CHANGED
package/lib/evalutor.js
CHANGED
package/lib/evalutorForAsync.js
CHANGED
package/lib/filter.js
CHANGED
package/lib/function.js
CHANGED
package/lib/index.js
CHANGED
package/lib/lexer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-formula v6.14.0-beta.
|
|
2
|
+
* amis-formula v6.14.0-beta.2
|
|
3
3
|
* Copyright 2021-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -573,6 +573,10 @@ function lexer(input, options) {
|
|
|
573
573
|
else if (isExp(char_1)) {
|
|
574
574
|
state = numberStates.EXP;
|
|
575
575
|
}
|
|
576
|
+
else if (isDigit(char_1)) { // 添加这个条件
|
|
577
|
+
passedValueIndex = i + 1;
|
|
578
|
+
state = numberStates.DIGIT; // 转换到DIGIT状态
|
|
579
|
+
}
|
|
576
580
|
else {
|
|
577
581
|
break iterator;
|
|
578
582
|
}
|
package/lib/parser.js
CHANGED