More diligent layout.last()

master
Michael Dvorkin 10 years ago
parent 52d0858c39
commit db2419638a
  1. 7
      layout.go

@ -264,11 +264,10 @@ func zero(str string) string {
//-----------------------------------------------------------------------------
func last(str string) string {
if len(str) >= 6 && str[0:6] != `N/A - ` {
return str
if len(str) >= 6 && str[0:6] == `N/A - ` {
return str[6:]
}
return str[6:]
return str
}
//-----------------------------------------------------------------------------

Loading…
Cancel
Save