Skip to content

Commit

Permalink
Remove superfluous space in xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacvicar committed Jun 20, 2018
1 parent 8e6b74a commit a9ac4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/seeker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.search(query, baseproject, project = nil, exclude_filter = nil, exclude
xpath_items << "contains-ic(@name, " + substring_words + ")"
end
words.select {|word| word.match(/^".+"$/) }.map {|word| word.gsub("\"", "") }.each do |word|
xpath_items << "@name = '#{word.gsub(/['"()]/, "")}' "
xpath_items << "@name = '#{word.gsub(/['"()]/, "")}'"
end
xpath_items << "path/project='#{baseproject}'" unless baseproject.blank?
xpath_items << "not(contains-ic(@project, '#{exclude_filter}'))" if (!exclude_filter.blank? && project.blank?)
Expand Down

0 comments on commit a9ac4ad

Please sign in to comment.