Skip to content
Snippets Groups Projects
Commit c899533e authored by Seblu's avatar Seblu
Browse files

fix bad regexp escaping

parent 42e062d7
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment