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:
parent
3daae5c1fa
commit
a04020daba
2 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue