Skip to content

fix(tsc strict): no-op-cadence-pattern.ts — fallback for regex match groups#1369

Merged
AceHack merged 2 commits intomainfrom
fix/no-op-cadence-tsc-strict
May 3, 2026
Merged

fix(tsc strict): no-op-cadence-pattern.ts — fallback for regex match groups#1369
AceHack merged 2 commits intomainfrom
fix/no-op-cadence-tsc-strict

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 3, 2026

Post-#1366-merge tsc strict-mode error on line 100: m2[2] typed as string | undefined. Same on m2[1] template interpolation. Added ?? "" fallbacks. Behavior unchanged (regex guarantees both groups exist when m2 is truthy).

Copilot AI review requested due to automatic review settings May 3, 2026 09:41
@AceHack AceHack enabled auto-merge (squash) May 3, 2026 09:41
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the TS hygiene check script to satisfy tsc --strict around regex match group indexing when building shard sort keys.

Changes:

  • Added nullish-coalescing fallbacks for m2[1]/m2[2] when constructing primary/disamb in collectShards.

Comment thread tools/hygiene/check-no-op-cadence-pattern.ts Outdated
…g regex-required-groups invariant explicitly (vs ?? '' silent-fallback)
@AceHack AceHack merged commit 0e692be into main May 3, 2026
25 checks passed
@AceHack AceHack deleted the fix/no-op-cadence-tsc-strict branch May 3, 2026 09:51
AceHack added a commit that referenced this pull request May 3, 2026
…ix with non-null assertion vs silent fallback) (#1370)
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