Skip to content

chore(tools): prevent false-positive <repeat> replacement on trailing plus#1524

Merged
fengmk2 merged 4 commits intovoidzero-dev:mainfrom
nurazon59:fix/tools/plus-repeat-false-positive
May 7, 2026
Merged

chore(tools): prevent false-positive <repeat> replacement on trailing plus#1524
fengmk2 merged 4 commits intovoidzero-dev:mainfrom
nurazon59:fix/tools/plus-repeat-false-positive

Conversation

@nurazon59
Copy link
Copy Markdown
Contributor

@nurazon59 nurazon59 commented May 6, 2026

Discovered while reviewing CI results after approving #1508.

The regex /\++\n/g was overly aggressive and matched any line ending with a single +, including legitimate text like "Vite+" in the CLI help output.

Changed to /\+{2,}\n/g to only match pnpm's actual repeated + progress indicators (e.g., +++).

… plus

The regex `/\++\n/g` matched any line ending with a single `+`,
including legitimate text like "Vite+". Changed to `/\+{2,}\n/g`
to only match pnpm's actual repeated `+` progress indicators.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit c493b32
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69fbe1df94948000080172bf

@nurazon59 nurazon59 marked this pull request as draft May 6, 2026 14:48
@nurazon59 nurazon59 force-pushed the fix/tools/plus-repeat-false-positive branch from a862802 to abacb6b Compare May 6, 2026 15:56
@nurazon59 nurazon59 marked this pull request as ready for review May 6, 2026 16:03
@nurazon59 nurazon59 force-pushed the fix/tools/plus-repeat-false-positive branch from b3d68e4 to 050e586 Compare May 6, 2026 16:03
@nurazon59 nurazon59 requested a review from fengmk2 May 6, 2026 16:04
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nurazon59 Thanks, I will regen the snap test diff before merge.

@fengmk2 fengmk2 changed the title fix(tools): prevent false-positive <repeat> replacement on trailing plus chore(tools): prevent false-positive <repeat> replacement on trailing plus May 7, 2026
@fengmk2 fengmk2 merged commit 4de8a9f into voidzero-dev:main May 7, 2026
38 checks passed
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.

2 participants