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 +2 -1
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-TIKUUEG2.js → chunk-7IOZFASL.js} +2 -1
- package/packages/safejs/dist/chunks/{chunk-TIKUUEG2.js.map → chunk-7IOZFASL.js.map} +2 -2
- package/packages/safejs/dist/chunks/{chunk-2USRJY3R.js → chunk-JFP4YVY2.js} +2 -2
- package/packages/safejs/dist/cli.js +2 -2
- package/packages/safejs/dist/core.js +1 -1
- package/packages/safejs/dist/index.js +2 -2
- package/packages/safejs/dist/interp/methods/string.js +2 -0
- /package/packages/safejs/dist/chunks/{chunk-2USRJY3R.js.map → chunk-JFP4YVY2.js.map} +0 -0
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.
|
|
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",
|