aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-14 05:09:16 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-14 05:09:16 +0300
commit27c5d085d585556eb19588fbdeca82a30b82818e (patch)
tree6bfe9f8b4206b94266de7853e7f611cc590c9aa1
parentadd a game (diff)
downloadchess-games-27c5d085d585556eb19588fbdeca82a30b82818e.tar.gz
chess-games-27c5d085d585556eb19588fbdeca82a30b82818e.zip
setenv.sh: whitespace handling in pgn_strip_clk
-rwxr-xr-xsetenv.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/setenv.sh b/setenv.sh
index eda19d4..5758846 100755
--- a/setenv.sh
+++ b/setenv.sh
@@ -63,7 +63,7 @@ pgn_lint() {
}
# Strips [%clk] tags from PGN files.
-alias pgn_strip_clk='sed --binary --in-place -- '"'"'s/ {\[%clk [[:digit:]]\+:[[:digit:]]\+\(:[[:digit:]]\+\)*\]}//g'"'"
+alias pgn_strip_clk='sed --binary --in-place -- '"'"'s/ {\s*\[%clk [[:digit:]]\+:[[:digit:]]\+\(:[[:digit:]]\+\)*\]\s*}//g'"'"
# Places main line moves on separate lines.
alias pgn_slice_moves='sed --binary --in-place -- '"'"'s/ \([[:digit:]]\+\.\)/\n\1/g'"'"