Skip to content

Releases: mvdan/xurls

v2.5.0

16 Apr 20:42
v2.5.0
6f8fb63
Compare
Choose a tag to compare
  • Add xurls -fix=all to replace URLs with temporary redirects as well
  • xurls -fix now shows more detailed info on broken URLs
  • xurls -fix now uses the method HEAD before falling back to GET
  • xurls -fix now provides a meaningful User-Agent header
  • Add a xurls -version flag
  • Update lists of TLDs and schemes

Binaries built on go version go1.20.3 linux/amd64 with:

CGO_ENABLED=0 go build -trimpath -ldflags="-w -s -X=main.version=v2.5.0"

Consider becoming a sponsor if you benefit from the work that went into this release!

v2.4.0

03 Mar 19:13
Compare
Choose a tag to compare
  • Optimize regular expressions, such as by using non-capturing groups
  • Add more unofficial schemes: gemini and moz-extension
  • Fix false negatives with trailing symbols and bracketed IPs
  • Fix a bug where xurls -fix could corrupt an input file
  • xurls -fix now only rewrites permanent redirects
  • xurls -fix now checks URLs concurrently within each file
  • Update lists of TLDs and schemes

A special thanks to @gibson042, @raphaelreyna, @Seirdy and @dnkl for their contributions!

Binaries built on go version go1.17.7 linux/amd64 via a shell script.

Consider becoming a sponsor if you benefit from the work that went into this release!

v2.3.0

24 Jul 21:51
Compare
Choose a tag to compare
  • Allow Relaxed to match email addresses once again
  • ASCII TLDs require a word break once again
  • Double quotes are no longer allowed in URLs to avoid false positives
  • Add more unofficial schemes such as cid, mid, and zoommtg
  • Update lists of TLDs and schemes

Binaries built on go version go1.16.6 linux/amd64 via a shell script.

Consider becoming a sponsor if you benefit from the work that went into this release!

v2.2.0

17 Apr 12:55
Compare
Choose a tag to compare
  • Improve support for matching non-ASCII TLDs
  • Allow underscores to end a URL, which is possible on sites like Youtube
  • Add xurls -fix to fix HTTP URLs in plaintext files which redirect or can't be reached
  • Update lists of TLDs and schemes

Binaries built on go version go1.14.2 linux/amd64.

v2.1.0

22 Sep 10:34
Compare
Choose a tag to compare
  • Allow Relaxed to match punycode TLDs
  • Support URLs in between * and _ markdown syntax
  • Don't allow | as part of a URL's path
  • Fix a crash with cmd/xurls and large inputs
  • Update lists of TLDs and schemes

Binaries built on go version go1.13 linux/amd64.

v2.0.0

21 Oct 21:22
Compare
Choose a tag to compare
  • Convert to a Go module, now mvdan.cc/xurls/v2
  • Convert Strict and Regexp to functions
  • Make Strict only accept well known schemes
  • Add AnyScheme to get the old Strict behavior
  • Allow all \p{Po} (other punctuation) chars in URLs

Binaries built on go version go1.11.1 linux/amd64.

v1.1.0

26 Jan 21:20
Compare
Choose a tag to compare
  • Add \p{M} (marks) as valid characters, present in languages like Hindi
  • .onion is no longer a pseudo-TLD

Binaries built on go version go1.8 linux/amd64.

v1.0.0

05 Dec 15:54
Compare
Choose a tag to compare

No noteworthy changes since 0.9.0.

v0.9.0

13 Apr 16:28
Compare
Choose a tag to compare
v0.9.0 Pre-release
Pre-release
  • Remove email addresses from Relaxed
  • Add support for matching braces, like parentheses and brackets
  • Add \p{So} (other symbols) as valid characters
  • Update TLDs
  • cmd/xurls
    • Don't ignore read (scanner) errors

v0.8.0

14 Sep 03:47
Compare
Choose a tag to compare
v0.8.0 Pre-release
Pre-release
  • Renamed StrictMatching to StrictMatchingScheme
  • Add # as valid end character (empty fragment)
  • Add = as valid end character (for base64)
  • Wrap exported regexes in parenthesis
  • Add IANA special use domain names to PseudoTLDs
  • Update TLDs