From 138004e85ae7916fc4ccaa8306afd2c541a1d68f Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 20 Mar 2012 14:09:00 +0100 Subject: [PATCH] tools/pattern_byplayer.sh: Fix indentation --- tools/pattern_byplayer.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/pattern_byplayer.sh b/tools/pattern_byplayer.sh index bf35d62..1e82c3e 100755 --- a/tools/pattern_byplayer.sh +++ b/tools/pattern_byplayer.sh @@ -12,13 +12,11 @@ sgf="$1"; shift # rest of parameters is passed to the patternscan engine sgf_attr() { - # TODO - # Does not work correctly for attributes containing escaped ] - # e.g. "PB[Tony \[Killer\] Nowak]" gets cropped to - # "Tony \[Killer" + # TODO: Does not work correctly for attributes containing escaped ] + # e.g. "PB[Tony \[Killer\] Nowak]" gets cropped to "Tony \[Killer" + # Not a big problem, since usually the player name is just + # [a-zA-Z0-9]* - # Not a big problem, since usually the player name is just - # [a-zA-Z0-9]* sed -n 's/^.*'$1'\[\([^]]*\)\].*$/\1/p' "$sgf" } -- 2.11.4.GIT