small plugin tweaks

This commit is contained in:
Luke Rogers 2012-03-19 23:31:54 +13:00
parent 1a1e1f8479
commit 03f82203e1
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ from util import hook
whitespace_re = re.compile(r'\s+')
valid_diceroll = r'^([+-]?(?:\d+|\d*d(?:\d+|F))(?:[+-](?:\d+|\d*d(?:\d+|'
valid_diceroll = r'^([+-]?(?:\d+|\d*d(?:\d+|F))(?:[+-](?:\d+|\d*d(?:\d+|' \
'F)))*)( .+)?$'
valid_diceroll_re = re.compile(valid_diceroll, re.I)
sign_re = re.compile(r'[+-]?(?:\d*d)?(?:\d+|F)', re.I)