Update dice_roll.pl to accept +n modifier

This commit is contained in:
Pragmatic Software 2015-10-06 17:35:21 -07:00
parent 0f8187b72a
commit 11c6ebc9c3
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ if($rolls =~ s/\s*-show\s*//) {
$show = 1;
}
if($rolls =~ m/^\s*(\d+)d\d+\s*$/) {
if($rolls =~ m/^\s*(\d+)d\d+(?:\+\d+)?\s*$/) {
if($1 > 100) {
print "Sorry, maximum of 100 rolls.\n";
die;