From 27c5d085d585556eb19588fbdeca82a30b82818e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 14 Apr 2017 05:09:16 +0300 Subject: setenv.sh: whitespace handling in pgn_strip_clk --- setenv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'"'" -- cgit v1.2.3