Update scripts to understand minus signs.
This commit is contained in:
parent
d8cb58fc00
commit
84be9d8f37
@ -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]}
|
||||
|
2
schedule
2
schedule
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user