summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.py b/command.py
index 66a9e74d..287f4d30 100644
--- a/command.py
+++ b/command.py
@@ -188,9 +188,9 @@ class Command(object):
188 188
189 def FindProjects(self, args): 189 def FindProjects(self, args):
190 result = [] 190 result = []
191 patterns = [re.compile(r'%s' % a, re.IGNORECASE) for a in args]
191 for project in self.GetProjects(''): 192 for project in self.GetProjects(''):
192 for arg in args: 193 for pattern in patterns:
193 pattern = re.compile(r'%s' % arg, re.IGNORECASE)
194 if pattern.search(project.name) or pattern.search(project.relpath): 194 if pattern.search(project.name) or pattern.search(project.relpath):
195 result.append(project) 195 result.append(project)
196 break 196 break