Skip to content

[CORL-2525]: Replace invalid URL anchor tag with text in comments#3890

Merged
kodiakhq[bot] merged 3 commits intodevelopfrom
bug/CORL-2525-url-validity-in-comments
Mar 21, 2022
Merged

[CORL-2525]: Replace invalid URL anchor tag with text in comments#3890
kodiakhq[bot] merged 3 commits intodevelopfrom
bug/CORL-2525-url-validity-in-comments

Conversation

@kabeaty
Copy link
Contributor

@kabeaty kabeaty commented Mar 16, 2022

What does this PR do?

These changes better handle the case where a comment includes an anchor tag with an invalid URL for its href. Instead of throwing an error, it will turn the anchor tag into text. See docs for info about invalid URLs: https://developer.mozilla.org/en-US/docs/Web/API/URL/URL

What changes to the GraphQL/Database Schema does this PR introduce?

none

Does this PR introduce any new environment variables or feature flags?

no

If any indexes were added, were they added to INDEXES.md?

n/a

How do I test this PR?

Check out the test and see that it's working as expected.

How do we deploy this PR?

@kabeaty kabeaty requested a review from nick-funk March 16, 2022 18:41
@netlify
Copy link

netlify bot commented Mar 16, 2022

✅ Deploy Preview for gallant-galileo-14878c canceled.

🔨 Explore the source changes: 5d0bb40

🔍 Inspect the deploy log: https://app.netlify.com/sites/gallant-galileo-14878c/deploys/6238b67e4b7ccc00091c3e09

Copy link
Contributor

@nick-funk nick-funk left a comment

Choose a reason for hiding this comment

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

Tested this and it even works great with the suspect/banned words highlighting!

@tessalt tessalt added the 🚀 merge it! Pull requests that should be merged after status checks pass with a review label Mar 21, 2022
@kodiakhq kodiakhq bot merged commit 6737937 into develop Mar 21, 2022
@kodiakhq kodiakhq bot deleted the bug/CORL-2525-url-validity-in-comments branch March 21, 2022 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚀 merge it! Pull requests that should be merged after status checks pass with a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants