@abaplint/runtime 2.6.31 → 2.6.33

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.
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.substring_after = void 0;
4
+ const types_1 = require("../types");
4
5
  const string_1 = require("../types/string");
5
6
  function substring_after(input) {
6
- const val = typeof input.val === "string" ? input.val : input.val.get();
7
+ let val = typeof input.val === "string" ? input.val : input.val.get();
8
+ if (input.val instanceof types_1.Character) {
9
+ val = input.val.getTrimEnd();
10
+ }
7
11
  let reg = "";
8
12
  if (typeof input.regex === "string") {
9
13
  reg = input.regex;
@@ -56,6 +56,9 @@ function eq(left, right) {
56
56
  else if (right instanceof types_1.Integer && left instanceof types_1.Integer) {
57
57
  return right.get() === left.get();
58
58
  }
59
+ else if (right instanceof types_1.DataReference && left instanceof types_1.DataReference) {
60
+ return right.getPointer() === left.getPointer();
61
+ }
59
62
  else if (right instanceof types_1.Table
60
63
  || right instanceof types_1.HashedTable) {
61
64
  if (left instanceof types_1.Table
@@ -16,7 +16,7 @@ function assign(input) {
16
16
  split.shift();
17
17
  for (const s of split) {
18
18
  // @ts-ignore
19
- input.dynamicSource = input.dynamicSource.get()[s.toLowerCase()];
19
+ input.dynamicSource = input.dynamicSource.get()[s.toLowerCase().replace(/[~\\/]/g, "$")];
20
20
  }
21
21
  }
22
22
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.6.31",
3
+ "version": "2.6.33",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",