1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Ignore case on dndnew and dndedit commands

This commit is contained in:
Steffo 2019-10-22 19:31:00 +02:00
parent 3daae5c1fa
commit a04020daba
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,4 @@
import re
from royalnet.commands import *
from ..tables import DndCharacter, DndActiveCharacter
@ -35,7 +36,7 @@ class DndeditCommand(Command):
r"WIS\s+(\d+)\s+"
r"CHA\s+(\d+)\s+"
r"MAXHP\s+(\d+)\s+"
r"AC\s+(\d+)")
r"AC\s+(\d+)", re.IGNORECASE)
try:
int(name)
except ValueError:

View file

@ -1,3 +1,4 @@
import re
from royalnet.commands import *
from ..tables import DndCharacter
@ -35,7 +36,7 @@ class DndnewCommand(Command):
r"WIS\s+(\d+)\s+"
r"CHA\s+(\d+)\s+"
r"MAXHP\s+(\d+)\s+"
r"AC\s+(\d+)")
r"AC\s+(\d+)", re.IGNORECASE)
try:
int(name)
except ValueError: