@qrvey/formula-lang 0.8.8 → 0.8.9

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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ <a name="0.8.9"></a>
2
+ ## [0.8.9](https://bitbucket.org/qrvey/qrvey_formula_lang/compare/v0.8.8...v0.8.9) (2023-05-19)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **mid:** fix mid in ES ([0de9f14](https://bitbucket.org/qrvey/qrvey_formula_lang/commits/0de9f14))
8
+
9
+
10
+
1
11
  <a name="0.8.8"></a>
2
12
  ## [0.8.8](https://bitbucket.org/qrvey/qrvey_formula_lang/compare/v0.8.7...v0.8.8) (2023-05-17)
3
13
 
@@ -36,7 +36,7 @@ String ${constants_1.ELASTICSEARCH_SCRIPT_NAMES.subString}(String text, int star
36
36
 
37
37
  String ${constants_1.ELASTICSEARCH_SCRIPT_NAMES.subString}(String text, int start, int end) {
38
38
  int first = (int) Math.min(start - 1, text.length());
39
- int last = (int) Math.min(start + end, text.length());
39
+ int last = (int) Math.min(start + (end - 1), text.length());
40
40
  return text.substring(first, last);
41
41
  }
42
42
  `;
@@ -32,7 +32,7 @@ String ${SCRIPT_NAMES.subString}(String text, int start) {
32
32
 
33
33
  String ${SCRIPT_NAMES.subString}(String text, int start, int end) {
34
34
  int first = (int) Math.min(start - 1, text.length());
35
- int last = (int) Math.min(start + end, text.length());
35
+ int last = (int) Math.min(start + (end - 1), text.length());
36
36
  return text.substring(first, last);
37
37
  }
38
38
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/formula-lang",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "description": "QFormula support for qrvey projects",
5
5
  "types": "dist/module/index.d.ts",
6
6
  "main": "dist/module/index.js",