mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 03:54:54 +08:00
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:
@ -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(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user