mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
Unexport FileAndExt
If needed outside helpers, create an exported file path (FilePathAndExt?) and/or a url version.
This commit is contained in:
parent
fd2fc1d3ce
commit
5b90b388cb
3 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue