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
201 stars 12 forks source link

Skip parsing very short strings #34

Closed mre closed 2 years ago

mre commented 2 years ago

Strings that are shorter than a certain threshold will not be parsed for a minor performance improvement and to avoid false-positives. The minimum string-length threshold was set to 4, as this is the shortest valid URL without a scheme that I'm aware of.

robinst commented 2 years ago

Makes sense, thanks!

robinst commented 2 years ago

Released in version 0.8.1