diff options
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") }, |