mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +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 royalnet.commands import *
|
||||||
from ..tables import DndCharacter, DndActiveCharacter
|
from ..tables import DndCharacter, DndActiveCharacter
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ class DndeditCommand(Command):
|
||||||
r"WIS\s+(\d+)\s+"
|
r"WIS\s+(\d+)\s+"
|
||||||
r"CHA\s+(\d+)\s+"
|
r"CHA\s+(\d+)\s+"
|
||||||
r"MAXHP\s+(\d+)\s+"
|
r"MAXHP\s+(\d+)\s+"
|
||||||
r"AC\s+(\d+)")
|
r"AC\s+(\d+)", re.IGNORECASE)
|
||||||
try:
|
try:
|
||||||
int(name)
|
int(name)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import re
|
||||||
from royalnet.commands import *
|
from royalnet.commands import *
|
||||||
from ..tables import DndCharacter
|
from ..tables import DndCharacter
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ class DndnewCommand(Command):
|
||||||
r"WIS\s+(\d+)\s+"
|
r"WIS\s+(\d+)\s+"
|
||||||
r"CHA\s+(\d+)\s+"
|
r"CHA\s+(\d+)\s+"
|
||||||
r"MAXHP\s+(\d+)\s+"
|
r"MAXHP\s+(\d+)\s+"
|
||||||
r"AC\s+(\d+)")
|
r"AC\s+(\d+)", re.IGNORECASE)
|
||||||
try:
|
try:
|
||||||
int(name)
|
int(name)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in a new issue