From 507ffb38ebbfb64f065df71c50a041624e768991 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Oct 2013 10:50:02 +0000 Subject: dtas-tl: "reto" command does not scan track IDs Using a regexp to match trackIDs is probably not intended by the user. --- bin/dtas-tl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/dtas-tl b/bin/dtas-tl index 7793f23..4597179 100755 --- a/bin/dtas-tl +++ b/bin/dtas-tl @@ -56,7 +56,7 @@ when "reto" re = ignorecase ? %r{#{re}}i : %r{#{re}} get_track_ids(c).each do |track_id| res = c.req("tl get #{track_id}") - res.sub!(/\A1 /, '') + res.sub!(/\A1 \d+=/, '') if re =~ res req = %W(tl goto #{track_id}) req << time if time -- cgit v1.2.3-24-ge0c7