amis-formula 6.3.0 → 6.4.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/error.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/evalutor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/filter.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/function.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/lexer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -129,9 +129,13 @@ function escapeString(text, allowedLetter) {
129
129
  ? '\t'
130
130
  : text === 'v'
131
131
  ? '\v'
132
- : ~allowedLetter.indexOf(text)
133
- ? text
134
- : _;
132
+ : text === '\\'
133
+ ? '\\'
134
+ : text === '/'
135
+ ? '/'
136
+ : ~allowedLetter.indexOf(text)
137
+ ? text
138
+ : _;
135
139
  });
136
140
  }
137
141
  function formatNumber(value) {
package/esm/parser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/doc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/error.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/evalutor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/filter.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/function.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/lexer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -133,9 +133,13 @@ function escapeString(text, allowedLetter) {
133
133
  ? '\t'
134
134
  : text === 'v'
135
135
  ? '\v'
136
- : ~allowedLetter.indexOf(text)
137
- ? text
138
- : _;
136
+ : text === '\\'
137
+ ? '\\'
138
+ : text === '/'
139
+ ? '/'
140
+ : ~allowedLetter.indexOf(text)
141
+ ? text
142
+ : _;
139
143
  });
140
144
  }
141
145
  function formatNumber(value) {
package/lib/parser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.3.0
2
+ * amis-formula v6.4.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-formula",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "description": "负责 amis 里面的表达式实现,内置公式,编辑器等",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",