Browse Source

Strip terminating telnet characters from text file

master
Matt Baer 9 years ago
parent
commit
08e4c932e7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      write-telnet.go

+ 1
- 1
write-telnet.go View File

@@ -219,7 +219,7 @@ func generateFileName() string {

func stripCtlAndExtFromUTF8(str string) string {
return strings.Map(func(r rune) rune {
if r == 10 || r == 13 || r >= 32 {
if r == 10 || r == 13 || (r >= 32 && r < 65533) {
return r
}
return -1


Loading…
Cancel
Save