@abaplint/runtime 2.12.7 → 2.12.9

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.
@@ -39,10 +39,7 @@ class ABAPRegExp {
39
39
  if (typeof r !== "string") {
40
40
  r = r.get();
41
41
  }
42
- if (typeof r === "string") {
43
- r = ABAPRegExp.convert(r);
44
- }
45
- else if (r.constructor.name === "cl_abap_regex") {
42
+ if (r.constructor.name === "cl_abap_regex") {
46
43
  const obj = r;
47
44
  // TODO: tackle the "mv_" variables properly, this is a workaround
48
45
  // @ts-ignore
@@ -52,10 +49,10 @@ class ABAPRegExp {
52
49
  ignoreCase = 'i';
53
50
  }
54
51
  }
55
- else {
52
+ else if (typeof r !== "string") {
56
53
  throw "getRegex(), unexpected input";
57
54
  }
58
- r = r;
55
+ r = ABAPRegExp.convert(r);
59
56
  if (r.length === 0 && options.all === true) {
60
57
  throw "getRegex(), zero length input";
61
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.12.7",
3
+ "version": "2.12.9",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",