From 5824c3eef46925fc795ca0c283ef3581ec0499d8 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 8 Nov 2018 00:19:15 +0100 Subject: Match entire filename in PBN regex --- tdd/tdd-bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tdd/tdd-bootstrap.php') diff --git a/tdd/tdd-bootstrap.php b/tdd/tdd-bootstrap.php index f22cd8e..59abdb6 100644 --- a/tdd/tdd-bootstrap.php +++ b/tdd/tdd-bootstrap.php @@ -177,7 +177,7 @@ function load_deals_for_tables($prefix, $round, $board_in_teamy) { $deals_by_tables = array(); $prefix = preg_quote($prefix); - $filename_regex = "/$prefix-r$round-t(\d+)-b(\d+).pbn/"; + $filename_regex = "/^$prefix-r$round-t(\d+)-b(\d+).pbn$/"; foreach(scandir('.') as $filename) { if(preg_match($filename_regex, $filename, $match)) { $file_table = $match[1]; -- cgit v1.2.3