From b0b63ba276e9c0c10dbc3f995c906746411b1370 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 8 Sep 2025 23:07:24 +0200 Subject: fix pattern regex to include optional "-" in printing number --- print/print.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print/print.php') diff --git a/print/print.php b/print/print.php index e4cc759..5f8dc96 100644 --- a/print/print.php +++ b/print/print.php @@ -17,7 +17,7 @@ require_once __DIR__ . '/vendor/autoload.php'; * Match cards from input */ -preg_match_all("/(\d+) (.+) \(([\w\d]+)\) (\d+\w*) ?([\*\w]*)/", $decklist, $matches); +preg_match_all("/(\d+) (.+) \(([\w\d]+)\) (\d+[\w\-]*) ?([\*\w]*)/", $decklist, $matches); $cards = []; for ($idx = 0; $idx < count($matches[0]); $idx++) { $cards[] = [ -- cgit v1.2.3