Skip to content

v2.7.0

Latest

Choose a tag to compare

@mvdan mvdan released this 04 Dec 23:30
Immutable release. Only release title and notes can be modified.
v2.7.0
  • Matching is significantly faster, using up to 70% less CPU time with Strict and 55% with Relaxed
  • Schemes and bare IPv6 addresses must now follow a word boundary, so profile:prod or randomtexthttp://foo.bar no 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 -fix now 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!