summaryrefslogtreecommitdiff
path: root/tdd/tdd-bootstrap.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-11-08 00:19:15 +0100
committeremkael <emkael@tlen.pl>2018-11-08 00:19:15 +0100
commit5824c3eef46925fc795ca0c283ef3581ec0499d8 (patch)
treee8459fbc8b18d857ab2e7ed8efa6a798dec2b6fb /tdd/tdd-bootstrap.php
parent5f655f3b9fff2f41754b9612ce178b495910f4d4 (diff)
Match entire filename in PBN regex
Diffstat (limited to 'tdd/tdd-bootstrap.php')
-rw-r--r--tdd/tdd-bootstrap.php2
1 files changed, 1 insertions, 1 deletions
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];