mirror of
1
Fork 0

[chore]: Bump mvdan.cc/xurls/v2 from 2.4.0 to 2.5.0 (#1702)

Bumps [mvdan.cc/xurls/v2](https://github.com/mvdan/xurls) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/mvdan/xurls/releases)
- [Commits](https://github.com/mvdan/xurls/compare/v2.4.0...v2.5.0)

---
updated-dependencies:
- dependency-name: mvdan.cc/xurls/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2023-04-19 13:44:20 +02:00 committed by GitHub
parent ef3004b77f
commit c5f61c456b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 36 additions and 29 deletions

4
go.mod
View File

@ -62,7 +62,7 @@ require (
gopkg.in/mcuadros/go-syslog.v2 v2.3.0 gopkg.in/mcuadros/go-syslog.v2 v2.3.0
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
modernc.org/sqlite v1.21.1 modernc.org/sqlite v1.21.1
mvdan.cc/xurls/v2 v2.4.0 mvdan.cc/xurls/v2 v2.5.0
) )
require ( require (
@ -148,7 +148,7 @@ require (
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
golang.org/x/mod v0.8.0 // indirect golang.org/x/mod v0.10.0 // indirect
golang.org/x/sys v0.7.0 // indirect golang.org/x/sys v0.7.0 // indirect
golang.org/x/tools v0.6.0 // indirect golang.org/x/tools v0.6.0 // indirect
google.golang.org/appengine v1.6.7 // indirect google.golang.org/appengine v1.6.7 // indirect

11
go.sum
View File

@ -488,8 +488,7 @@ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qq
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o=
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
github.com/rs/xid v1.4.0 h1:qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY= github.com/rs/xid v1.4.0 h1:qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY=
github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
@ -705,8 +704,9 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk=
golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@ -771,7 +771,6 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@ -1070,8 +1069,8 @@ modernc.org/tcl v1.15.1 h1:mOQwiEK4p7HruMZcwKTZPw/aqtGM4aY00uzWhlKKYws=
modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg= modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg=
modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
modernc.org/z v1.7.0 h1:xkDw/KepgEjeizO2sNco+hqYkU12taxQFqPEmgm1GWE= modernc.org/z v1.7.0 h1:xkDw/KepgEjeizO2sNco+hqYkU12taxQFqPEmgm1GWE=
mvdan.cc/xurls/v2 v2.4.0 h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc= mvdan.cc/xurls/v2 v2.5.0 h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8=
mvdan.cc/xurls/v2 v2.4.0/go.mod h1:+GEjq9uNjqs8LQfM9nVnM8rff0OQ5Iash5rzX+N1CSg= mvdan.cc/xurls/v2 v2.5.0/go.mod h1:yQgaGQ1rFtJUzkmKiHYSSfuQxqfYmd//X6PxvholpeE=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=

6
vendor/modules.txt vendored
View File

@ -769,7 +769,7 @@ golang.org/x/image/tiff/lzw
golang.org/x/image/vp8 golang.org/x/image/vp8
golang.org/x/image/vp8l golang.org/x/image/vp8l
golang.org/x/image/webp golang.org/x/image/webp
# golang.org/x/mod v0.8.0 # golang.org/x/mod v0.10.0
## explicit; go 1.17 ## explicit; go 1.17
golang.org/x/mod/semver golang.org/x/mod/semver
# golang.org/x/net v0.9.0 # golang.org/x/net v0.9.0
@ -940,6 +940,6 @@ modernc.org/strutil
# modernc.org/token v1.0.1 # modernc.org/token v1.0.1
## explicit ## explicit
modernc.org/token modernc.org/token
# mvdan.cc/xurls/v2 v2.4.0 # mvdan.cc/xurls/v2 v2.5.0
## explicit; go 1.16 ## explicit; go 1.19
mvdan.cc/xurls/v2 mvdan.cc/xurls/v2

View File

@ -2,7 +2,7 @@
[![Go Reference](https://pkg.go.dev/badge/mvdan.cc/xurls/v2.svg)](https://pkg.go.dev/mvdan.cc/xurls/v2) [![Go Reference](https://pkg.go.dev/badge/mvdan.cc/xurls/v2.svg)](https://pkg.go.dev/mvdan.cc/xurls/v2)
Extract urls from text using regular expressions. Requires Go 1.16 or later. Extract urls from text using regular expressions. Requires Go 1.19 or later.
```go ```go
import "mvdan.cc/xurls/v2" import "mvdan.cc/xurls/v2"

View File

@ -4,8 +4,7 @@ package xurls
// Schemes is a sorted list of all IANA assigned schemes. // Schemes is a sorted list of all IANA assigned schemes.
// //
// Source: // Source: https://www.iana.org/assignments/uri-schemes/uri-schemes-1.csv
// https://www.iana.org/assignments/uri-schemes/uri-schemes-1.csv
var Schemes = []string{ var Schemes = []string{
`aaa`, `aaa`,
`aaas`, `aaas`,
@ -28,6 +27,7 @@ var Schemes = []string{
`attachment`, `attachment`,
`aw`, `aw`,
`barion`, `barion`,
`bb`,
`beshare`, `beshare`,
`bitcoin`, `bitcoin`,
`bitcoincash`, `bitcoincash`,
@ -53,6 +53,7 @@ var Schemes = []string{
`content`, `content`,
`content-type`, `content-type`,
`crid`, `crid`,
`cstr`,
`cvs`, `cvs`,
`dab`, `dab`,
`dat`, `dat`,
@ -76,6 +77,7 @@ var Schemes = []string{
`dvx`, `dvx`,
`dweb`, `dweb`,
`ed2k`, `ed2k`,
`eid`,
`elsi`, `elsi`,
`embedded`, `embedded`,
`ens`, `ens`,
@ -97,10 +99,12 @@ var Schemes = []string{
`geo`, `geo`,
`gg`, `gg`,
`git`, `git`,
`gitoid`,
`gizmoproject`, `gizmoproject`,
`go`, `go`,
`gopher`, `gopher`,
`graph`, `graph`,
`grd`,
`gtalk`, `gtalk`,
`h323`, `h323`,
`ham`, `ham`,
@ -144,6 +148,7 @@ var Schemes = []string{
`ldaps`, `ldaps`,
`leaptofrogans`, `leaptofrogans`,
`lorawan`, `lorawan`,
`lpa`,
`lvlt`, `lvlt`,
`magnet`, `magnet`,
`mailserver`, `mailserver`,
@ -161,6 +166,7 @@ var Schemes = []string{
`mongodb`, `mongodb`,
`moz`, `moz`,
`ms-access`, `ms-access`,
`ms-appinstaller`,
`ms-browser-extension`, `ms-browser-extension`,
`ms-calculator`, `ms-calculator`,
`ms-drive-to`, `ms-drive-to`,
@ -178,11 +184,13 @@ var Schemes = []string{
`ms-meetnow`, `ms-meetnow`,
`ms-mixedrealitycapture`, `ms-mixedrealitycapture`,
`ms-mobileplans`, `ms-mobileplans`,
`ms-newsandinterests`,
`ms-officeapp`, `ms-officeapp`,
`ms-people`, `ms-people`,
`ms-project`, `ms-project`,
`ms-powerpoint`, `ms-powerpoint`,
`ms-publisher`, `ms-publisher`,
`ms-remotedesktop-launch`,
`ms-restoretabcompanion`, `ms-restoretabcompanion`,
`ms-screenclip`, `ms-screenclip`,
`ms-screensketch`, `ms-screensketch`,
@ -244,6 +252,7 @@ var Schemes = []string{
`opaquelocktoken`, `opaquelocktoken`,
`openpgp4fpr`, `openpgp4fpr`,
`otpauth`, `otpauth`,
`p1`,
`pack`, `pack`,
`palm`, `palm`,
`paparazzi`, `paparazzi`,
@ -300,6 +309,7 @@ var Schemes = []string{
`spotify`, `spotify`,
`ssb`, `ssb`,
`ssh`, `ssh`,
`starknet`,
`steam`, `steam`,
`stun`, `stun`,
`stuns`, `stuns`,
@ -309,6 +319,7 @@ var Schemes = []string{
`swid`, `swid`,
`swidpath`, `swidpath`,
`tag`, `tag`,
`taler`,
`teamspeak`, `teamspeak`,
`tel`, `tel`,
`teliaeid`, `teliaeid`,
@ -324,6 +335,7 @@ var Schemes = []string{
`tv`, `tv`,
`udp`, `udp`,
`unreal`, `unreal`,
`upt`,
`urn`, `urn`,
`ut2004`, `ut2004`,
`uuid-in-package`, `uuid-in-package`,
@ -337,9 +349,12 @@ var Schemes = []string{
`vscode`, `vscode`,
`vscode-insiders`, `vscode-insiders`,
`vsls`, `vsls`,
`w3`,
`wais`, `wais`,
`web3`,
`wcr`, `wcr`,
`webcal`, `webcal`,
`web+ap`,
`wifi`, `wifi`,
`wpid`, `wpid`,
`ws`, `ws`,

View File

@ -5,8 +5,8 @@ package xurls
// TLDs is a sorted list of all public top-level domains. // TLDs is a sorted list of all public top-level domains.
// //
// Sources: // Sources:
// * https://data.iana.org/TLD/tlds-alpha-by-domain.txt // - https://data.iana.org/TLD/tlds-alpha-by-domain.txt
// * https://publicsuffix.org/list/effective_tld_names.dat // - https://publicsuffix.org/list/effective_tld_names.dat
var TLDs = []string{ var TLDs = []string{
`aaa`, `aaa`,
`aarp`, `aarp`,
@ -26,7 +26,6 @@ var TLDs = []string{
`aco`, `aco`,
`actor`, `actor`,
`ad`, `ad`,
`adac`,
`ads`, `ads`,
`adult`, `adult`,
`ae`, `ae`,
@ -185,7 +184,6 @@ var TLDs = []string{
`brussels`, `brussels`,
`bs`, `bs`,
`bt`, `bt`,
`bugatti`,
`build`, `build`,
`builders`, `builders`,
`business`, `business`,
@ -205,7 +203,6 @@ var TLDs = []string{
`cam`, `cam`,
`camera`, `camera`,
`camp`, `camp`,
`cancerresearch`,
`canon`, `canon`,
`capetown`, `capetown`,
`capital`, `capital`,
@ -720,7 +717,6 @@ var TLDs = []string{
`limited`, `limited`,
`limo`, `limo`,
`lincoln`, `lincoln`,
`linde`,
`link`, `link`,
`lipsy`, `lipsy`,
`live`, `live`,
@ -732,7 +728,6 @@ var TLDs = []string{
`loans`, `loans`,
`locker`, `locker`,
`locus`, `locus`,
`loft`,
`lol`, `lol`,
`london`, `london`,
`lotte`, `lotte`,
@ -752,7 +747,6 @@ var TLDs = []string{
`lv`, `lv`,
`ly`, `ly`,
`ma`, `ma`,
`macys`,
`madrid`, `madrid`,
`maif`, `maif`,
`maison`, `maison`,
@ -1070,7 +1064,6 @@ var TLDs = []string{
`select`, `select`,
`sener`, `sener`,
`services`, `services`,
`ses`,
`seven`, `seven`,
`sew`, `sew`,
`sex`, `sex`,
@ -1365,6 +1358,7 @@ var TLDs = []string{
`укр`, `укр`,
`қаз`, `қаз`,
`հայ`, `հայ`,
`ישראל`,
`קום`, `קום`,
`ابوظبي`, `ابوظبي`,
`اتصالات`, `اتصالات`,
@ -1489,7 +1483,6 @@ var TLDs = []string{
`网络`, `网络`,
`联通`, `联通`,
`臺灣`, `臺灣`,
`诺基亚`,
`谷歌`, `谷歌`,
`购物`, `购物`,
`通販`, `通販`,

View File

@ -6,10 +6,10 @@ package xurls
// PseudoTLDs is a sorted list of some widely used unofficial TLDs. // PseudoTLDs is a sorted list of some widely used unofficial TLDs.
// //
// Sources: // Sources:
// * https://en.wikipedia.org/wiki/Pseudo-top-level_domain // - https://en.wikipedia.org/wiki/Pseudo-top-level_domain
// * https://en.wikipedia.org/wiki/Category:Pseudo-top-level_domains // - https://en.wikipedia.org/wiki/Category:Pseudo-top-level_domains
// * https://tools.ietf.org/html/draft-grothoff-iesg-special-use-p2p-names-00 // - https://tools.ietf.org/html/draft-grothoff-iesg-special-use-p2p-names-00
// * https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml // - https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml
var PseudoTLDs = []string{ var PseudoTLDs = []string{
`bit`, // Namecoin `bit`, // Namecoin
`example`, // Example domain `example`, // Example domain