@abaplint/runtime 2.3.96 → 2.3.98

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.
@@ -19,12 +19,15 @@ function translate(input, i) {
19
19
  const replace = chunk.substr(1, 1);
20
20
  // regexp escaping
21
21
  if (search === "+"
22
+ || search === "*"
23
+ || search === "?"
22
24
  || search === "."
23
25
  || search === "^"
24
26
  || search === "$"
25
27
  || search === "|"
26
28
  || search === "["
27
29
  || search === "]"
30
+ || search === "\\"
28
31
  || search === "("
29
32
  || search === ")") {
30
33
  search = "\\" + search;
@@ -5,6 +5,7 @@ const _parse_1 = require("../operators/_parse");
5
5
  const throw_error_1 = require("../throw_error");
6
6
  const character_1 = require("./character");
7
7
  const integer_1 = require("./integer");
8
+ const structure_1 = require("./structure");
8
9
  class String {
9
10
  constructor(input) {
10
11
  this.value = "";
@@ -24,6 +25,9 @@ class String {
24
25
  // replace trailing blanks if the source is a Character string
25
26
  this.value = value.getTrimEnd();
26
27
  }
28
+ else if (value instanceof structure_1.Structure) {
29
+ this.value = value.getCharacter();
30
+ }
27
31
  else if (value instanceof integer_1.Integer) {
28
32
  const lv_sign = (parseInt(value.get(), 10) >= 0) ? " " : "-";
29
33
  this.value = value.get() + lv_sign;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.96",
3
+ "version": "2.3.98",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",