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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "11.0.19",
3
+ "version": "11.0.20",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25402,6 +25402,7 @@ function callMatchLikeMethod(value, methodName, args) {
25402
25402
  if (methodName === "match") regex.lastIndex = 0;
25403
25403
  const matcher = methodName === "matchAll" ? createSandboxRegex(regex.source, regex.flags, regex.lastIndex) : regex;
25404
25404
  const matches = collectRegexMatches(matcher, value, true);
25405
+ if (methodName === "match" && matches.length === 0) return null;
25405
25406
  return methodName === "match" ? matches.map((match) => match.text) : matches.map((match) => toMatchArray(match, value));
25406
25407
  }
25407
25408
  function collectRegexMatches(regex, value, all) {
@@ -29124,4 +29125,4 @@ export {
29124
29125
  FileSnapshotBackend,
29125
29126
  run
29126
29127
  };
29127
- //# sourceMappingURL=chunk-TIKUUEG2.js.map
29128
+ //# sourceMappingURL=chunk-7IOZFASL.js.map