@abaplint/runtime 2.13.7 → 2.13.8

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,10 +19,25 @@ function assign(input) {
19
19
  const split = input.dynamicName.split(/->|-/);
20
20
  split.shift();
21
21
  for (const s of split) {
22
- if (s === "*") {
22
+ const upperS = s.toUpperCase().trimEnd();
23
+ if (upperS === "*") {
23
24
  // @ts-ignore
24
25
  input.dynamicSource = input.dynamicSource.dereference();
25
26
  }
27
+ else if (upperS === "TABLE_LINE" && input.dynamicSource instanceof types_1.DataReference) {
28
+ // @ts-ignore
29
+ input.dynamicSource = input.dynamicSource.getPointer();
30
+ if (input.dynamicSource instanceof types_1.Table) {
31
+ const options = input.dynamicSource.getOptions();
32
+ if (options?.withHeader === true) {
33
+ // @ts-ignore
34
+ input.dynamicSource = input.dynamicSource.getHeader();
35
+ }
36
+ else {
37
+ input.dynamicSource = undefined;
38
+ }
39
+ }
40
+ }
26
41
  else {
27
42
  // @ts-ignore
28
43
  const source = input.dynamicSource.get();
@@ -30,6 +45,7 @@ function assign(input) {
30
45
  abap.builtin.sy.get().subrc.set(4);
31
46
  return;
32
47
  }
48
+ // @ts-ignore
33
49
  input.dynamicSource = source[s.toLowerCase().replace(/[~\\/]/g, "$")];
34
50
  }
35
51
  }
@@ -27,7 +27,11 @@ function find(input, options) {
27
27
  s = s.replace(/\|/g, "\\|");
28
28
  s = s.replace(/\*/g, "\\*");
29
29
  s = s.replace(/\+/g, "\\+");
30
- s = new RegExp(s, "g");
30
+ let flags = "g";
31
+ if (options.ignoringCase === true) {
32
+ flags += "i";
33
+ }
34
+ s = new RegExp(s, flags);
31
35
  }
32
36
  else if (options.regex || options.pcre) {
33
37
  s = abap_regex_1.ABAPRegExp.getRegex({ all: true, ...options });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.13.7",
3
+ "version": "2.13.8",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",