mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
Unexport FileAndExt
If needed outside helpers, create an exported file path (FilePathAndExt?) and/or a url version.
This commit is contained in:
@@ -540,7 +540,7 @@ func TestFileAndExt(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, d := range data {
|
||||
file, ext := FileAndExt(filepath.FromSlash(d.input), fpb)
|
||||
file, ext := fileAndExt(filepath.FromSlash(d.input), fpb)
|
||||
if d.expectedFile != file {
|
||||
t.Errorf("Test %d failed. Expected filename %q got %q.", i, d.expectedFile, file)
|
||||
}
|
||||
|
Reference in New Issue
Block a user