Skip to content
Snippets Groups Projects
Unverified Commit 872145d1 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix not being able to invoke phrase search using unicode quotation marks (#26687)

parent 00084581
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class SearchService < BaseService
QUOTE_EQUIVALENT_CHARACTERS = /[“”„«»「」『』《》]/
def call(query, account, limit, options = {})
@query = query&.strip
@query = query&.strip&.gsub(QUOTE_EQUIVALENT_CHARACTERS, '"')
@account = account
@options = options
@limit = limit.to_i
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment