diff options
author | emkael <emkael@tlen.pl> | 2018-11-08 00:19:15 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-11-08 00:19:15 +0100 |
commit | 5824c3eef46925fc795ca0c283ef3581ec0499d8 (patch) | |
tree | e8459fbc8b18d857ab2e7ed8efa6a798dec2b6fb /tdd/tdd-bootstrap.php | |
parent | 5f655f3b9fff2f41754b9612ce178b495910f4d4 (diff) |
Match entire filename in PBN regex
Diffstat (limited to 'tdd/tdd-bootstrap.php')
-rw-r--r-- | tdd/tdd-bootstrap.php | 2 |
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]; |