Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Fixed issue parsing console input on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Soliux committed Oct 1, 2021
1 parent 102eaf5 commit 236e535
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func Input(DisplayText string) string {
fmt.Printf("%s > ", DisplayText)
}
text, _ := reader.ReadString('\n')
return strings.Replace(text, "\n", "", -1)
return strings.Replace(text, "\r\n", "", -1)
}

func Help() {
Expand Down
1 change: 0 additions & 1 deletion tokens.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

0 comments on commit 236e535

Please sign in to comment.