Skip to content

Address review feedback: improve StringWithOptionalLink robustness#7661

Merged
andrew-polk merged 1 commit intoBl-15820TC-new-msgfrom
copilot/sub-pr-7648
Feb 5, 2026
Merged

Address review feedback: improve StringWithOptionalLink robustness#7661
andrew-polk merged 1 commit intoBl-15820TC-new-msgfrom
copilot/sub-pr-7648

Conversation

Copy link

Copilot AI commented Feb 5, 2026

Addresses three approved items from review #3759705782 on PR #7648.

Changes

  • Updated comment (stringWithOptionalLink.tsx): Clarified that external http/mailto links are now supported and opened via the 'link' API endpoint, not just internal API calls

  • Fixed regex lastIndex bug (stringWithOptionalLink.tsx): Moved regex instantiation inside component function to prevent stale lastIndex state on re-renders

  • Added edge case tests (stringWithOptionalLink.spec.tsx): Added coverage for messages with no links, links at start/end, consecutive links, and empty strings

All tests passing (8/8). No security issues detected.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


This change is Reviewable


Open with Devin

Copilot AI mentioned this pull request Feb 5, 2026
Copilot AI changed the title [WIP] Update to address feedback from review on BL-15820 Address review feedback: improve StringWithOptionalLink robustness Feb 5, 2026
Copilot AI requested a review from andrew-polk February 5, 2026 22:11
@andrew-polk andrew-polk marked this pull request as ready for review February 5, 2026 22:25
Co-authored-by: andrew-polk <5847219+andrew-polk@users.noreply.github.com>
Copy link
Contributor

@andrew-polk andrew-polk left a comment

Choose a reason for hiding this comment

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

@andrew-polk reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @copilot[bot]).

@andrew-polk andrew-polk merged commit 122c9b1 into Bl-15820TC-new-msg Feb 5, 2026
1 check passed
@andrew-polk andrew-polk deleted the copilot/sub-pr-7648 branch February 5, 2026 22:30
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

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