@abaplint/core 2.113.35 → 2.113.36
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.
|
@@ -28,7 +28,9 @@ class CDSFunction extends combi_1.Expression {
|
|
|
28
28
|
const abap_system_timezone = (0, combi_1.seq)("ABAP_SYSTEM_TIMEZONE", "(", input, ",", input, ")");
|
|
29
29
|
const abap_user_timezone = (0, combi_1.seq)("ABAP_USER_TIMEZONE", "(", input, ",", input, ",", input, ")");
|
|
30
30
|
const mod = (0, combi_1.seq)("MOD", "(", input, ",", input, ")");
|
|
31
|
-
|
|
31
|
+
const left = (0, combi_1.seq)("LEFT", "(", input, ",", input, ")");
|
|
32
|
+
const right = (0, combi_1.seq)("RIGHT", "(", input, ",", input, ")");
|
|
33
|
+
return (0, combi_1.altPrio)(substring, coalesce, tstmp_to_dats, concat, tstmp_to_tims, concat_with_space, dats_is_valid, dats_days_between, tstmp_add_seconds, tstmp_seconds_between, tstmp_current_utctimestamp, tstmp_is_valid, abap_system_timezone, abap_user_timezone, bintohex, hextobin, dats_add_days, dats_add_months, tstmp_to_dst, dats_tims_to_tstmp, mod, left, right);
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
exports.CDSFunction = CDSFunction;
|
|
@@ -4,7 +4,8 @@ exports.CDSString = void 0;
|
|
|
4
4
|
const combi_1 = require("../../abap/2_statements/combi");
|
|
5
5
|
class CDSString extends combi_1.Expression {
|
|
6
6
|
getRunnable() {
|
|
7
|
-
|
|
7
|
+
// https://stackoverflow.com/a/57754227
|
|
8
|
+
return (0, combi_1.regex)(/^'[A-Za-zÀ-ž\u0370-\u03FF\u0400-\u04FF: -_]*'$/);
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
exports.CDSString = CDSString;
|
package/build/src/registry.js
CHANGED