Skip to content
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 #989: url escape issue and better url validation #1014

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

flx-sta
Copy link
Contributor

@flx-sta flx-sta commented Oct 2, 2023

PR Creator Checklist

Ensure you've checked the following before submitting your PR:

  • You've discussed making your changes with a member of the dev team per contributing rules in the README
  • Your changes are free of any lint errors
  • Your changes are free of any typescript errors
  • You've tested your changes

Summary

Fixes an issue with links not being opened properly.
Adjust URL check to use new URL() with try catch instead of a regex pattern

Screenshots

Screen.Recording.2023-10-02.at.18.17.26.mov

Test Plan

  1. Open the App
  2. Go find a link with a special character (find one in the original issue [Bug] apostraphe causing issue with links #989)
  3. open the link: It should open properly

- remove decodeURLComponent line to resolve url visit issues
@flx-sta flx-sta changed the title fix #989: url escape issue fix #989: url escape issue and better url validation Oct 2, 2023
- adjust url checking mechanism
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.

1 participant