From c899533e516b9c12404ef106ca4813a623d52d07 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Thu, 10 Feb 2011 14:29:40 +0100 Subject: [PATCH] fix bad regexp escaping --- cccli/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cccli/commands.py b/cccli/commands.py index f359a3e..a8825b3 100644 --- a/cccli/commands.py +++ b/cccli/commands.py @@ -40,7 +40,7 @@ class Commands(object): raise cmdBadName() # find right commands to call if argv[0] not in self: - matchlist = [ x for x in self if re.match("%s.+"%argv[0], x) ] + matchlist = [ x for x in self if re.match("%s.+"%re.escape(argv[0]), x) ] if len(matchlist) == 1: argv[0] = matchlist[0] else: -- GitLab