lib/sup/ferret_index.rb in sup-0.9 vs lib/sup/ferret_index.rb in sup-0.9.1

- old
+ new

@@ -338,10 +338,10 @@ ## raises a ParseError if something went wrong. def parse_query s query = {} subs = HookManager.run("custom-search", :subs => s) || s - subs = s.gsub(/\b(to|from):(\S+)\b/) do + subs = subs.gsub(/\b(to|from):(\S+)\b/) do field, name = $1, $2 if(p = ContactManager.contact_for(name)) [field, p.email] elsif name == "me" [field, "(" + AccountManager.user_emails.join("||") + ")"]