linkifyjs icon indicating copy to clipboard operation
linkifyjs copied to clipboard

the string 'fasfafhttp://google.com' recognition error

Open wulisensen opened this issue 4 years ago • 3 comments

result: 'fasfafhttp://google.com' => 'fasfafhttp://' + google.com

i want 'fasfafhttp://google.com' => 'fasfaf' + http://google.com:

version 3.0.3

wulisensen avatar Oct 19 '21 11:10 wulisensen

Due to the reasons described here it is not possible to solve this with Linkify's current implementation. Note that both v2 and v3 are affected.

nfrasser avatar Oct 19 '21 14:10 nfrasser

@nfrasser are you considering fixing this for v4? or is this desired behavior for Linkify going forward?

FWIW, a lot of user input text fields suffer from this problem, so it's unfortunately something we have to deal with often and it was great when linkify handled it automatically.

varunsrin avatar Dec 02 '21 10:12 varunsrin

@varunsrin

are you considering fixing this for v4? or is this desired behavior for Linkify going forward?

Unfortunately no, it would require a complete rethinking of the internal parsing system and honestly I don't have the necessary language processing knowledge to do it

it was great when linkify handled it automatically.

I don't recall that linkify was ever able to handle these cases, except perhaps years ago in V1. Do you know the last version of linkify where this worked?

nfrasser avatar Dec 02 '21 15:12 nfrasser