-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: breaks the avatar if you hit the button adding an invalid link #31467
Conversation
🦋 Changeset detectedLatest commit: 552a1e4 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #31467 +/- ##
============================================
+ Coverage 49.57% 76.47% +26.90%
============================================
Files 3316 278 -3038
Lines 81517 9008 -72509
Branches 16719 1708 -15011
============================================
- Hits 40411 6889 -33522
+ Misses 36400 1688 -34712
+ Partials 4706 431 -4275
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apurb-coder Don't forget the changeset
My mistake, the changesetbot was crazy :s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there, thanks for the contribution! 🚀 💯
I've made some changes because using a regex
wasn't the best option, we could have image links without the pattern you suggested.
Proposed changes (including videos or screenshots)
Before:
screen-capture.webm
After:
Changes I made:
The input field for the URL will only accept an image URL, any other non-image URL or invalid URL will not be accepted.
Issue(s)
Closes #21024
Steps to test or reproduce
Further comments