@abaplint/runtime 2.7.31 → 2.7.32

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,11 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.translate = void 0;
4
+ const types_1 = require("../types");
4
5
  const string_1 = require("../types/string");
5
6
  function translate(input) {
6
7
  let val = typeof input.val === "string" ? input.val : input.val.get();
7
8
  const from = typeof input.from === "string" ? input.from : input.from.get();
8
- const to = typeof input.to === "string" ? input.to : input.to.get();
9
+ let to = typeof input.to === "string" ? input.to : input.to.get();
10
+ if (input.to instanceof types_1.Character) {
11
+ to = input.to.getTrimEnd();
12
+ }
9
13
  const fromSplit = from.split("");
10
14
  const toSplit = to.split("");
11
15
  const chars = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.7.31",
3
+ "version": "2.7.32",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",