Running
#[test]
fn test_1872() {
use linkify::LinkFinder;
let links: Vec<&str> = LinkFinder::new()
.links("https://lychee.cli.rs/!/ and https://lychee.cli.rs/test!/")
.map(|l| l.as_str())
.collect();
assert_eq!(
vec!["https://lychee.cli.rs/!/", "https://lychee.cli.rs/test!/"],
links
);
}
fails with
assertion `left == right` failed
left: ["https://lychee.cli.rs/!/", "https://lychee.cli.rs/test!/"]
right: ["https://lychee.cli.rs/", "https://lychee.cli.rs/test"]
Is this expected behaviour?
Or could we update linkify to make this test pass, as these are valid URLs?
Running
fails with
Is this expected behaviour?
Or could we update linkify to make this test pass, as these are valid URLs?