@abaplint/runtime 2.6.32 → 2.6.34
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
|
-
|
|
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;
|
package/build/src/compare/eq.js
CHANGED
|
@@ -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
|
|
@@ -26,7 +26,7 @@ function initial(val) {
|
|
|
26
26
|
return val.get().match(/^ *$/) !== null;
|
|
27
27
|
}
|
|
28
28
|
else if (val instanceof types_1.FieldSymbol && val.getPointer() === undefined) {
|
|
29
|
-
throw "FS not assigned";
|
|
29
|
+
throw new Error("FS not assigned");
|
|
30
30
|
}
|
|
31
31
|
else if (val instanceof types_1.FieldSymbol) {
|
|
32
32
|
const res = initial(val.getPointer());
|