You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
non-breaking space is included as part of e-mail links #66
Apparently "\u{a0}" is considered part of e-mail links, as shown by this failing test case:
#[test]fntest_link_finder(){let text =
"this is a mail address:\u{a0}test@example.com\u{a0}surrounded by non-breaking spaces";letmut links = LinkFinder::new().links(text);assert_eq!(links.next().unwrap().as_str(),"test@example.com");}
As non-breaking spaces are common in e-mail bodies, this leads to misidentification of links.
Activity
robinst commentedon Sep 27, 2025
Happy to accept a PR to fix this, it shouldn't be too difficult.
Fix: Exclude Unicode whitespace from URLs and emails (robinst#66)
Fix: Exclude Unicode whitespace from URLs and emails (robinst#66)
Fix: Exclude Unicode whitespace from URLs and emails (robinst#66)