Skip to content

Commit

Permalink
promptUserSelectResource now trims "\r" carriage return character (us…
Browse files Browse the repository at this point in the history
…ed in Windows console newline "\r\n")
  • Loading branch information
GeordieP committed Mar 13, 2017
1 parent 524bca5 commit 0a0c6a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trello_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func promptUserSelectResource() int {
}

i = strings.TrimRight(i, "\n")
i = strings.TrimRight(i, "\r")
id, err := strconv.Atoi(i)
if err != nil {
log.Fatal("Hmm... did you type a number from the list ?")
Expand Down

0 comments on commit 0a0c6a6

Please sign in to comment.