fix(deps): update module mvdan.cc/xurls to v2 (#3815)

* fix(deps): update module mvdan.cc/xurls to v2

* mvdan/xurls 2.x bump fixes (#3823)

* Bump xurls import to v2

* Change Strict to function calls, v2.0.0 change

* Add go.sum entry for xurls/v2

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: mahmed2000 <mahmad2000@protonmail.com>
This commit is contained in:
renovate[bot]
2024-07-08 11:24:48 -07:00
committed by GitHub
parent aa8193bb9e
commit 4c4bc90460
4 changed files with 7 additions and 6 deletions

View File

@ -21,7 +21,7 @@ import (
"github.com/yuin/goldmark"
"github.com/yuin/goldmark/extension"
"github.com/yuin/goldmark/renderer/html"
"mvdan.cc/xurls"
"mvdan.cc/xurls/v2"
)
// DoesFileExists checks if the file exists.
@ -162,7 +162,7 @@ func RenderSimpleMarkdown(raw string) string {
[]byte("https:"),
}),
extension.WithLinkifyURLRegexp(
xurls.Strict,
xurls.Strict(),
),
),
),
@ -191,7 +191,7 @@ func RenderPageContentMarkdown(raw string) string {
[]byte("https:"),
}),
extension.WithLinkifyURLRegexp(
xurls.Strict,
xurls.Strict(),
),
),
),