]> git.cworth.org Git - turbot/commit
Drop leading/trailing spaces and empty strings when parsing rounds
authorCarl Worth <cworth@cworth.org>
Sat, 2 Jan 2021 05:31:20 +0000 (21:31 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 2 Jan 2021 05:31:20 +0000 (21:31 -0800)
commit87a5f4873bdf8cfa661ae126f279da4dd9010ac7
tree876aca3e86f3df7abebebb8da752a8fb003a4f83
parentfe16f7c2cc97054403312bf2e6f5a046f5a3e8f9
Drop leading/trailing spaces and empty strings when parsing rounds

Since we're dealing with user input here, it's easy for their to be
leading and trailing space (which we don't want as part of the round
name), or even an accidentally emty round (from two consecutive
commas). Drop any of those spaces and ignore any empty round strings.
turbot/interaction.py