Releases: mvdan/xurls
v2.6.0
- Avoid matching a trailing colon in
example.com:in relaxed mode - #74 - Add
geoandmatrixtoSchemesNoAuthority - Add a
relaxedEmailsubexpression name to detect which relaxed matches are email addresses - Update lists of TLDs and schemes
Binaries built on go version go1.23.4 linux/amd64 with:
CGO_ENABLED=0 go build -trimpath -ldflags="-w -s -X=main.version=v2.6.0"
Consider becoming a sponsor if you benefit from the work that went into this release!
v2.5.0
- Add
xurls -fix=allto replace URLs with temporary redirects as well xurls -fixnow shows more detailed info on broken URLsxurls -fixnow uses the methodHEADbefore falling back toGETxurls -fixnow provides a meaningfulUser-Agentheader- Add a
xurls -versionflag - 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
- Optimize regular expressions, such as by using non-capturing groups
- Add more unofficial schemes:
geminiandmoz-extension - Fix false negatives with trailing symbols and bracketed IPs
- Fix a bug where
xurls -fixcould corrupt an input file xurls -fixnow only rewrites permanent redirectsxurls -fixnow 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
- Allow
Relaxedto 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, andzoommtg - 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
- Improve support for matching non-ASCII TLDs
- Allow underscores to end a URL, which is possible on sites like Youtube
- Add
xurls -fixto 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
v2.0.0
- Convert to a Go module, now
mvdan.cc/xurls/v2 - Convert
StrictandRegexpto functions - Make
Strictonly accept well known schemes - Add
AnySchemeto get the oldStrictbehavior - Allow all
\p{Po}(other punctuation) chars in URLs
Binaries built on go version go1.11.1 linux/amd64.