1
Fork 0

Update scripts to understand minus signs.

master
vonavi 2015-01-06 00:28:25 +03:00
parent d8cb58fc00
commit 84be9d8f37
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function parse_tour_info {
local tour_info=$(cat "${REPO_DIR}/${TOURNAMENT}/tours/${tour}/tour_info"; echo)
local date_re="[0-9?]{2}\.[0-9?]{2}\.[0-9?]{4}"
local res_re="(1|½|0|\+|-)"
local res_re="(1|½|0|\+|)"
while read line; do
if [[ $line =~ ^($date_re)\ +([^\ ]+)\ +-\ +([^\ ]+)(\ +$res_re-$res_re)? ]]; then
local date=${BASH_REMATCH[1]}

View File

@ -113,7 +113,7 @@ function show_tour_sequence {
function output_tour_info {
local date_re="([0-9?]{2})\.([0-9?]{2})\.([0-9?]{4})"
local score_re="(1|½|0|\+|-)"
local score_re="(1|½|0|\+|)"
local res_re="${score_re}-${score_re}"
local tour_num= date_beg= date_end=
local white= black= result= game_date=