- Matching is significantly faster, using up to 70% less CPU time with
Strictand 55% withRelaxed - Schemes and bare IPv6 addresses must now follow a word boundary, so
profile:prodorrandomtexthttp://foo.barno longer match - URLs no longer end on brackets or quotation marks, including Unicode ones like
“https://foo.com”- #87 - URLs may now end with
@- #78 - Keep queries and fragments after scheme-less hosts in relaxed mode - #86
- Many more fixes for edge cases with schemes, hosts, IPv6 addresses, emails, and invisible characters
xurls -fixnow backs up each file before rewriting it, and only rewrites URLs which redirect- Update lists of TLDs and schemes
Binaries built on go version go1.27.4 linux/amd64 with:
CGO_ENABLED=0 go build -trimpath -ldflags="-w -s"
Consider becoming a sponsor if you benefit from the work that went into this release!