diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-03 18:09:52 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-03 18:10:38 +0100 |
commit | 53f204310ec8362d7084c123e8e16f5bb73dd257 (patch) | |
tree | d227e23ec9bf0ef1107dc6528ecfd73182ae73ed /common/paths | |
parent | 7f82461407e21ba5b80380d12906fadd12b93e2d (diff) | |
download | hugo-53f204310ec8362d7084c123e8e16f5bb73dd257.tar.gz hugo-53f204310ec8362d7084c123e8e16f5bb73dd257.zip |
all: Rename Unmormalized => Unnormalized
Diffstat (limited to 'common/paths')
-rw-r--r-- | common/paths/pathparser.go | 4 | ||||
-rw-r--r-- | common/paths/pathparser_test.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/paths/pathparser.go b/common/paths/pathparser.go index 897edb9b7..f506eb60f 100644 --- a/common/paths/pathparser.go +++ b/common/paths/pathparser.go @@ -359,8 +359,8 @@ func (p *Path) Path() (d string) { return p.norm(p.s) } -// Unmormalized returns the Path with the original case preserved. -func (p *Path) Unmormalized() *Path { +// Unnormalized returns the Path with the original case preserved. +func (p *Path) Unnormalized() *Path { return p.unnormalized } diff --git a/common/paths/pathparser_test.go b/common/paths/pathparser_test.go index 3546b6605..27d0b45e9 100644 --- a/common/paths/pathparser_test.go +++ b/common/paths/pathparser_test.go @@ -93,7 +93,7 @@ func TestParse(t *testing.T) { "Basic text file, mixed case and spaces, unnormalized", "/a/Foo BAR.txt", func(c *qt.C, p *Path) { - pp := p.Unmormalized() + pp := p.Unnormalized() c.Assert(pp, qt.IsNotNil) c.Assert(pp.BaseNameNoIdentifier(), qt.Equals, "Foo BAR") }, |