robinst / linkify

Rust library to find links such as URLs and email addresses in plain text, handling surrounding punctuation correctly
https://robinst.github.io/linkify/
Apache License 2.0
206 stars 12 forks source link

support schemaless urls #39

Open alexwennerberg opened 2 years ago

alexwennerberg commented 2 years ago

I use protocol-relative URLs sometimes, such as

//google.com

instead of

https://google.com

Is there any way this library could be modified to include these URLs? Maybe as an optional configuration?

See https://datatracker.ietf.org/doc/html/rfc3986#section-4.2

mre commented 2 years ago

See https://github.com/robinst/linkify/pull/17. The PR is not being worked on right now, but you might want to look into the remaining issues mentioned there.