dtas-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/3] dtas-tl: "reto" command does not scan track IDs


From: Eric Wong
Subject: [PATCH 3/3] dtas-tl: "reto" command does not scan track IDs
Date: Thu, 10 Oct 2013 10:51:04 +0000

Using a regexp to match trackIDs is probably not intended
by the user.
---
 bin/dtas-tl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]