From a04020dabad0fa97373f1477bd845a197fa66d5d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 22 Oct 2019 19:31:00 +0200 Subject: [PATCH] Ignore case on dndnew and dndedit commands --- royalnet/packs/rpg/commands/dndedit.py | 3 ++- royalnet/packs/rpg/commands/dndnew.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/royalnet/packs/rpg/commands/dndedit.py b/royalnet/packs/rpg/commands/dndedit.py index a16727de..12881cc9 100644 --- a/royalnet/packs/rpg/commands/dndedit.py +++ b/royalnet/packs/rpg/commands/dndedit.py @@ -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: diff --git a/royalnet/packs/rpg/commands/dndnew.py b/royalnet/packs/rpg/commands/dndnew.py index 3fdb8a05..4c8af8f9 100644 --- a/royalnet/packs/rpg/commands/dndnew.py +++ b/royalnet/packs/rpg/commands/dndnew.py @@ -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: