# HG changeset patch # User Steve Losh # Date 1253146446 14400 # Node ID 2688abb7ae127071ce3e2484f3c9f7d342e6a2c2 # Parent 0c75cfe0a6a49fdfa48576ceef68b5b136114b95 Fix the substitution problem for find-strings that start with 's'. diff -r 0c75cfe0a6a4 -r 2688abb7ae12 t.py --- a/t.py Fri Sep 11 19:08:21 2009 -0400 +++ b/t.py Wed Sep 16 20:14:06 2009 -0400 @@ -139,7 +139,7 @@ """ task = self[prefix] if text.startswith('s/') or text.startswith('/'): - text = text.lstrip('s/').strip('/') + text = re.sub('^s?/', '', text).rstrip('/') find, _, repl = text.partition('/') text = re.sub(find, repl, task['text'])