poe-code 11.0.19 → 11.0.20

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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-TIKUUEG2.js";
30
+ } from "./chunk-7IOZFASL.js";
31
31
 
32
32
  // packages/safejs/src/migrate.ts
33
33
  import { createHash } from "node:crypto";
@@ -8055,4 +8055,4 @@ export {
8055
8055
  parseMcpConfig,
8056
8056
  makeMcpModule
8057
8057
  };
8058
- //# sourceMappingURL=chunk-2USRJY3R.js.map
8058
+ //# sourceMappingURL=chunk-JFP4YVY2.js.map
@@ -20,7 +20,7 @@ import {
20
20
  parseMcpConfig,
21
21
  splitFrontmatter,
22
22
  withBrokenPipeGuard
23
- } from "./chunks/chunk-2USRJY3R.js";
23
+ } from "./chunks/chunk-JFP4YVY2.js";
24
24
  import {
25
25
  Budget,
26
26
  SandboxError,
@@ -32,7 +32,7 @@ import {
32
32
  replaceErrorStack,
33
33
  restore,
34
34
  run
35
- } from "./chunks/chunk-TIKUUEG2.js";
35
+ } from "./chunks/chunk-7IOZFASL.js";
36
36
  import "./chunks/chunk-4YIDX44G.js";
37
37
 
38
38
  // packages/safejs/src/cli.ts
@@ -3,7 +3,7 @@ import {
3
3
  createReplayableRandom,
4
4
  lint,
5
5
  run
6
- } from "./chunks/chunk-TIKUUEG2.js";
6
+ } from "./chunks/chunk-7IOZFASL.js";
7
7
  import "./chunks/chunk-4YIDX44G.js";
8
8
  export {
9
9
  Budget,
@@ -27,7 +27,7 @@ import {
27
27
  runWithSpawnUsageAccumulator,
28
28
  splitFrontmatter,
29
29
  supportsSpawnMode
30
- } from "./chunks/chunk-2USRJY3R.js";
30
+ } from "./chunks/chunk-JFP4YVY2.js";
31
31
  import {
32
32
  Budget,
33
33
  FileSnapshotBackend,
@@ -49,7 +49,7 @@ import {
49
49
  registerPendingHostCallPolicy,
50
50
  restore,
51
51
  run
52
- } from "./chunks/chunk-TIKUUEG2.js";
52
+ } from "./chunks/chunk-7IOZFASL.js";
53
53
  import "./chunks/chunk-4YIDX44G.js";
54
54
 
55
55
  // packages/safejs/src/runner/run-harness.ts
@@ -291,6 +291,8 @@ function callMatchLikeMethod(value, methodName, args) {
291
291
  ? createSandboxRegex(regex.source, regex.flags, regex.lastIndex)
292
292
  : regex;
293
293
  const matches = collectRegexMatches(matcher, value, true);
294
+ if (methodName === "match" && matches.length === 0)
295
+ return null;
294
296
  return methodName === "match"
295
297
  ? matches.map((match) => match.text)
296
298
  : matches.map((match) => toMatchArray(match, value));