@abaplint/runtime 2.10.25 → 2.10.26
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/build/src/compare/cs.js +4 -0
- package/package.json +1 -1
package/build/src/compare/cs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cs = cs;
|
|
4
|
+
const types_1 = require("../types");
|
|
4
5
|
function cs(left, right) {
|
|
5
6
|
let l = "";
|
|
6
7
|
if (typeof left === "number" || typeof left === "string") {
|
|
@@ -14,6 +15,9 @@ function cs(left, right) {
|
|
|
14
15
|
if (typeof right === "string") {
|
|
15
16
|
r = right.toString();
|
|
16
17
|
}
|
|
18
|
+
else if (right instanceof types_1.Character) {
|
|
19
|
+
r = right.getTrimEnd();
|
|
20
|
+
}
|
|
17
21
|
else {
|
|
18
22
|
r = right.get().toString();
|
|
19
23
|
}
|