Skip to content

Commit

Permalink
Merge pull request #7 from GeordieP/master
Browse files Browse the repository at this point in the history
promptUserSelectResource now trims "\r" carriage return character from console input
  • Loading branch information
jnormington authored Mar 13, 2017
2 parents 524bca5 + 0a0c6a6 commit 49d7953
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 49d7953

Please sign in to comment.