amis-formula 1.2.1 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v1.2.1
2
+ * amis-formula v1.2.2
3
3
  * Copyright 2021 fex
4
4
  */
5
5
 
@@ -119,7 +119,7 @@ var Evaluator = /** @class */ (function () {
119
119
  input: ast.body,
120
120
  filters: [
121
121
  {
122
- name: defaultFilter.replace(/^\|\s/, ''),
122
+ name: defaultFilter.replace(/^\s*\|\s*/, ''),
123
123
  args: []
124
124
  }
125
125
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-formula",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "负责 amis 里面的表达式实现,内置公式,编辑器等",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {