More diligent layout.last()

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

@ -264,12 +264,11 @@ 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
}
//-----------------------------------------------------------------------------
func currency(str string) string {

Loading…
Cancel
Save