Loading cccli/commands.py +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading Loading
cccli/commands.py +1 −1 Original line number Diff line number Diff line Loading @@ -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: Loading