@poe-platform/safe-js 0.1.181 → 0.1.182

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.
@@ -10660,8 +10660,8 @@ function callStringMethodBody(value, methodName, args, budget, parent, context)
10660
10660
  const regex = args[0];
10661
10661
  if (methodName === "search" && isSandboxRegex(regex) && getSandboxPropertyDescriptor(regex, "exec", budget) !== void 0)
10662
10662
  return callCustomRegexSearch(value, regex, budget, context);
10663
- if (methodName === "match" && isSandboxRegex(regex) && getSandboxPropertyDescriptor(regex, "exec", budget) !== void 0)
10664
- return callCustomRegexMatch(value, regex, budget, context);
10663
+ if (methodName === "match" && isSandboxRegex(regex) && ["exec", "flags", ...Object.keys(regexFlagProperties)].some((key) => getSandboxPropertyDescriptor(regex, key, budget) !== void 0))
10664
+ return callObservableRegexMatch(value, regex, budget, context);
10665
10665
  if (isSandboxRegex(regex) && (methodName === "matchAll" || methodName === "match" && !regex.flags.includes("g") && regex.lastIndex !== null && typeof regex.lastIndex === "object")) {
10666
10666
  return callStringRegexCursor(value, methodName, regex, budget, parent, context);
10667
10667
  }
@@ -11025,7 +11025,7 @@ async function callCustomRegexSearch(value, regex, budget, context) {
11025
11025
  release();
11026
11026
  }
11027
11027
  }
11028
- async function callCustomRegexMatch(value, regex, budget, context) {
11028
+ async function callObservableRegexMatch(value, regex, budget, context) {
11029
11029
  const matches = [];
11030
11030
  let result;
11031
11031
  let matched;
@@ -36567,4 +36567,4 @@ export {
36567
36567
  FileSnapshotBackend,
36568
36568
  run
36569
36569
  };
36570
- //# sourceMappingURL=chunk-IJRSYEH5.js.map
36570
+ //# sourceMappingURL=chunk-A6KP64IV.js.map