Skip to content

Commit

Permalink
tools: gt-analyze-similar-decks: fix regex escape
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuchka committed Oct 12, 2024
1 parent 42dee48 commit f821801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/gt-analyze-similar-decks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

# 96.4578 GW_GT_DEF_107: Battlemaster Krellus, Alpha Scimitar, Silv...
# Arena.Guild.<:-(nick)*(name)-:>: Battlemaster Krellus, Alpha Scimitar, Silv...
DECK_FMT = re.compile("^(?P<prefix>(?P<points>\s*[0-9.]+\s+)?(?P<deck_name>.+?): )(?P<cards>.*)$")
CARD_FMT = re.compile("^(?P<name>.+?)(?P<level>-\d)?\s*(?:\s+#(?P<count>\d+))?$")
DECK_FMT = re.compile(r"^(?P<prefix>(?P<points>\s*[0-9.]+\s+)?(?P<deck_name>.+?): )(?P<cards>.*)$")
CARD_FMT = re.compile(r"^(?P<name>.+?)(?P<level>-\d)?\s*(?:\s+#(?P<count>\d+))?$")

class NameCountType:
CARD_TYPE_COMMANDER = 1
Expand Down

0 comments on commit f821801

Please sign in to comment.