able-bio / suggestion-box

A place to submit issues for bugs, feature requests and other ideas related to Able.
https://able.bio
4 stars 0 forks source link

"Add a link" fails on valid single-letter domain #39

Closed anson-vandoren closed 4 years ago

anson-vandoren commented 4 years ago

Describe the bug The link dialog box does not recognize a valid URL if the domain is a single letter. The dialog works correctly if any random letter is added before or after the "t".

To Reproduce Steps to reproduce the behavior:

  1. Create a new post
  2. Highlight any text and press Ctrl(Cmd)-K for the link dialog
  3. Enter any valid URL that has a single character domain (e.g., https://x.org, https://t.me, https://t.co)
  4. See error message "Invalid URL! Make sure you start the link with http:// or https://"

Expected behavior No error message, and the link is formed correctly

Screenshots image

Desktop (please complete the following information):

Additional context N/A

drenther commented 4 years ago

Will look into this. Thanks for reporting.

RhettTrickett commented 4 years ago

This should be fixed now.

anson-vandoren commented 4 years ago

Yup! Works fine for me now. Thanks!