poe-code 11.0.21 → 11.0.22

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
@@ -144514,7 +144514,8 @@ function callSplit(value, args, budget) {
144514
144514
  let endedWithZeroWidthMatch = false;
144515
144515
  for (const match of collectRegexMatches(splitter, value, true)) {
144516
144516
  endedWithZeroWidthMatch = match.text.length === 0 && match.index === value.length;
144517
- if (match.text.length === 0 && match.index === 0) continue;
144517
+ if (match.text.length === 0 && (match.index === copiedThrough || match.index === value.length))
144518
+ continue;
144518
144519
  if (result2.length >= limit2) break;
144519
144520
  result2.push(budget.allocateString(value.slice(copiedThrough, match.index)));
144520
144521
  for (const capture of match.captures) {
@@ -144523,7 +144524,7 @@ function callSplit(value, args, budget) {
144523
144524
  }
144524
144525
  copiedThrough = match.index + match.text.length;
144525
144526
  }
144526
- if (result2.length < limit2 && !endedWithZeroWidthMatch)
144527
+ if (result2.length < limit2 && (value.length > 0 || !endedWithZeroWidthMatch))
144527
144528
  result2.push(budget.allocateString(value.slice(copiedThrough)));
144528
144529
  budget.allocateArrayLength(result2.length);
144529
144530
  return result2;
@@ -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.21",
155712
+ version: "11.0.22",
155712
155713
  description: "CLI tool to configure Poe API for developer workflows.",
155713
155714
  license: "MIT",
155714
155715
  type: "module",