question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pasting doesn't allow commas in pasted url

See original GitHub issue

Describe the bug Pasting a valid url like https://tiptap.dev?abc=xyz,test auto links only up to the comma even though the whole pasted value is a valid url.

Steps to Reproduce / Codesandbox Example Steps to reproduce the behavior:

  1. Paste a valid url with a comma in it into the editor e.g. https://tiptap.dev?abc=xyz,test
  2. Tiptap creates a link that doesn’t include the comma and beyond

Expected behavior Expect the entire valid url with the comma to be auto linked

Screenshots After pasting: image

Environment

  • OS: Windows 10
  • Browser: Firefox
  • Version: 1.29.4
  • Mobile / Desktop: Tested on desktop

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aquelehugocommented, Dec 1, 2021

@philippkuehn We were using Preact and for performance reasons we are migrating back to React, because of React 18 improvements. A teammate was suspicious about Preact being the culprit on this issue and it was. I had issues with Preact compatibility with other input-related libraries in the past, so I guess it is not worth it handling that. Thank you for the amazing work and support and sorry for flooding here 😬

1reaction
philippkuehncommented, Nov 30, 2021

@aquelehugo yes, please. we are using linkify for url detection, so I think we can’t do here anything. but let’s see.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pasting a URL into Mail
While yes, for URLs you can go into the "Insert" -> "URL" then paste the url into a popup box, the fact that...
Read more >
Paste into input boxes, breaking at newlines or commas
My current idea is to use a textarea, and prepending a HTML5 <input type="url"> element when detecting (since these automatically validate the string...
Read more >
copy paste - Why does Notepad++ turn commas into ...
I have a report from someone asking a programming question on StackOverflow that when they pasted valid code [(1 ...
Read more >
Copy-paste tables from website - comma issue Solved
Any suggestions as to how to copy-paste tables from websites and have the comma removed (or changed to into a dot) ?
Read more >
Numeric copy/paste problem(comma/point)
If I paste 12.45 it works and I get 12,45, but this doesn't solve my problem in Germany. If I use the RadMaskedTextBox...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found