@abaplint/runtime 2.7.54 → 2.7.56
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,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.substring_after = void 0;
|
|
4
|
+
const abap_regex_1 = require("../abap_regex");
|
|
4
5
|
const types_1 = require("../types");
|
|
5
6
|
const string_1 = require("../types/string");
|
|
6
7
|
function substring_after(input) {
|
|
@@ -16,10 +17,10 @@ function substring_after(input) {
|
|
|
16
17
|
reg = input.regex.get();
|
|
17
18
|
}
|
|
18
19
|
else if (typeof input.sub === "string") {
|
|
19
|
-
reg = input.sub;
|
|
20
|
+
reg = abap_regex_1.ABAPRegExp.escapeRegExp(input.sub);
|
|
20
21
|
}
|
|
21
22
|
else if (input === null || input === void 0 ? void 0 : input.sub) {
|
|
22
|
-
reg = input.sub.get();
|
|
23
|
+
reg = abap_regex_1.ABAPRegExp.escapeRegExp(input.sub.get());
|
|
23
24
|
}
|
|
24
25
|
const r = new RegExp(reg + "(.*)");
|
|
25
26
|
const res = val.match(r);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.substring_before = void 0;
|
|
4
|
+
const abap_regex_1 = require("../abap_regex");
|
|
4
5
|
const types_1 = require("../types");
|
|
5
6
|
const string_1 = require("../types/string");
|
|
6
7
|
function substring_before(input) {
|
|
@@ -22,10 +23,10 @@ function substring_before(input) {
|
|
|
22
23
|
reg = input.regex.get();
|
|
23
24
|
}
|
|
24
25
|
else if (typeof input.sub === "string") {
|
|
25
|
-
reg = input.sub;
|
|
26
|
+
reg = abap_regex_1.ABAPRegExp.escapeRegExp(input.sub);
|
|
26
27
|
}
|
|
27
28
|
else if (input === null || input === void 0 ? void 0 : input.sub) {
|
|
28
|
-
reg = input.sub.get();
|
|
29
|
+
reg = abap_regex_1.ABAPRegExp.escapeRegExp(input.sub.get());
|
|
29
30
|
}
|
|
30
31
|
const r = new RegExp("(.*?)" + reg);
|
|
31
32
|
const res = val.match(r);
|