@abaplint/runtime 1.8.18 → 1.8.19
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.
|
@@ -5,7 +5,8 @@ const types_1 = require("../types");
|
|
|
5
5
|
function count(input) {
|
|
6
6
|
let found = 0;
|
|
7
7
|
const val = typeof input.val === "string" ? input.val : input.val.get();
|
|
8
|
-
|
|
8
|
+
let sub = typeof input.sub === "string" ? input.sub : input.sub.get();
|
|
9
|
+
sub = sub.replace(/\*/g, "\\*");
|
|
9
10
|
if (val !== "") {
|
|
10
11
|
const res = val.match(new RegExp(sub, "g"));
|
|
11
12
|
if (res) {
|