lib/pt/client.rb in pt-0.6.0 vs lib/pt/client.rb in pt-0.6.1

- old
+ new

@@ -85,10 +85,10 @@ def get_tasks_to_assign(project, user_name) project.stories.all.select{ |t| t.owned_by == nil } end def get_member(project, query) - member = project.memberships.all.select{ |m| m.name.downcase == query.downcase || m.initials.downcase == query.downcase } + member = project.memberships.all.select{ |m| m.name.downcase.start_with? query.downcase || m.initials.downcase == query.downcase } member.empty? ? nil : member.first end def get_members(project) project.memberships.all