Skip to content

Commit

Permalink
Allow spaces in arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Sep 16, 2022
1 parent 715001f commit 042c557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/playbtw_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
tables = map(str.strip, args['table'].split(','))
result = []
for t in tables:
result.append(choice_table(t))
result.append(choice_table(t.strip()))
print(' '.join(result))
elif action == 'wtable':
tables = map(str.strip, args['table'].split(','))
result = []
for t in tables:
result.append(choice_wtable(t))
result.append(choice_wtable(t.strip()))
print(' '.join(result))
elif action == 'roll_dice':
result = roll_dice(args['quantity'], args['size'])
Expand Down

0 comments on commit 042c557

Please sign in to comment.