This website works better with JavaScript.
Home
Explore
Help
Sign In
writeas
/
nerds
mirror of
https://github.com/writeas/nerds
Watch
1
Star
0
Fork
0
Code
Browse Source
Strip terminating telnet characters from text file
master
Matt Baer
9 years ago
parent
279d0e6e3b
commit
08e4c932e7
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save