mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
all: Run gofumpt -l -w .
This commit is contained in:
@@ -70,7 +70,6 @@ func (ns *Namespace) FindRESubmatch(expr string, content any, limit ...any) ([][
|
||||
}
|
||||
|
||||
return re.FindAllStringSubmatch(conv, n), nil
|
||||
|
||||
}
|
||||
|
||||
// ReplaceRE returns a copy of s, replacing all matches of the regular
|
||||
|
@@ -83,6 +83,7 @@ func TestFindRESubmatch(t *testing.T) {
|
||||
c.Check(result, qt.DeepEquals, test.expect)
|
||||
}
|
||||
}
|
||||
|
||||
func TestReplaceRE(t *testing.T) {
|
||||
t.Parallel()
|
||||
c := qt.New(t)
|
||||
|
@@ -111,5 +111,4 @@ func BenchmarkTruncate(b *testing.B) {
|
||||
ns.Truncate(10, "I have a <a href='/markdown'>Markdown link</a> inside")
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user