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/dist/index.js CHANGED
@@ -144554,6 +144554,7 @@ function callMatchLikeMethod(value, methodName, args) {
144554
144554
  if (methodName === "match") regex.lastIndex = 0;
144555
144555
  const matcher = methodName === "matchAll" ? createSandboxRegex(regex.source, regex.flags, regex.lastIndex) : regex;
144556
144556
  const matches = collectRegexMatches(matcher, value, true);
144557
+ if (methodName === "match" && matches.length === 0) return null;
144557
144558
  return methodName === "match" ? matches.map((match) => match.text) : matches.map((match) => toMatchArray(match, value));
144558
144559
  }
144559
144560
  function collectRegexMatches(regex, value, all) {
@@ -155708,7 +155709,7 @@ var init_package2 = __esm({
155708
155709
  "package.json"() {
155709
155710
  package_default2 = {
155710
155711
  name: "poe-code",
155711
- version: "11.0.19",
155712
+ version: "11.0.20",
155712
155713
  description: "CLI tool to configure Poe API for developer workflows.",
155713
155714
  license: "MIT",
155714
155715
  type: "module",