about summary refs log tree commit homepage
path: root/bin/dtas-tl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-10 10:50:02 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-10 10:50:02 +0000
commit507ffb38ebbfb64f065df71c50a041624e768991 (patch)
tree257a5ac280dd9492ccc4a173924184252be76fb5 /bin/dtas-tl
parent3f10fbf0c3037c72bd2d817eea7bafe547048875 (diff)
downloaddtas-507ffb38ebbfb64f065df71c50a041624e768991.tar.gz
Using a regexp to match trackIDs is probably not intended
by the user.
Diffstat (limited to 'bin/dtas-tl')
-rwxr-xr-xbin/dtas-tl2
1 files changed, 1 insertions, 1 deletions
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