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/package.json
CHANGED
|
@@ -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-
|
|
29128
|
+
//# sourceMappingURL=chunk-7IOZFASL.js.map
|