Commit 57608162 authored by Florian R. Hanke's avatar Florian R. Hanke

Use the same style as in Core for creating the regular expression query.

parent e48b283a
...@@ -61,7 +61,7 @@ module Pod ...@@ -61,7 +61,7 @@ module Pod
def search_by_name(query, full_text_search = false) def search_by_name(query, full_text_search = false)
if full_text_search if full_text_search
set_names = [] set_names = []
query_regexp = %r{#{query}}i query_regexp = /#{query}/i
updated_search_index.each do |name, set_data| updated_search_index.each do |name, set_data|
texts = [name] texts = [name]
if full_text_search if full_text_search
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment