Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Search might not work when query contains '%' #158

Closed
@kizashi1122

Description

I just took a look your code though.

 term = '%' + term.downcase + '%'

should be

    term =  term.downcase.gsub(/[\\%_]/){|m| "\\#{m}"}
    term = "%#{term}%"

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions