Skip to content

docs: clarify comma-delimited repetition helper - #1124

Merged
sidneyswift merged 1 commit into
mainfrom
codex/condense-repetitions-docs-current-main
Oct 24, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/condense-repetitions-docs-current-main

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The repetition helper’s source comment promised space-separated repeated words, but the implementation splits only on commas. This corrects the JSDoc and one inline comment to describe whole comma-delimited spans, trimming, case-sensitive consecutive matching, the configurable threshold, retained empty tokens and normalized output spacing. Executable code and lyric processing are unchanged.

Validation: 31 existing postprocessor/preset tests pass across two files; no new tests. TypeScript5.9.3 emits byte-identical JavaScript with comments removed. Full repository lint without fixes, targeted Prettier and git diff checks pass.

Addresses the documentation discrepancy in API295 discussion2932043257. Broader handling of repeated lyric words/phrases/lines remains a separate product decision.


Summary by cubic

Corrects the condenseRepetitions helper's documentation to match its actual comma-delimited behavior. The source comment claimed space-separated repeated words were handled, but the implementation splits only on commas. The JSDoc and inline comment now describe the real matching rules, and no executable code or lyric processing changes.

Written for commit e4a8659. Summary will update on new commits.

View guided diff Turn on auto-fix

Correct the helper documentation from API295 discussion_r2932043257. Comments only; preserve runtime lyric processing.
@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 24, 2026 7:15am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sidneyswift
sidneyswift merged commit d40e60c into main Oct 24, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — e4a86599 Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant