       searchQuery.trim()
       .replace(/^['"]/, "")
       .replace(/['"]$/, "")
+      .replace(/'/g, singleQuoteEscapeSequence)
     )
     @
 

        return false

  whereSQL: (klass) ->

    # https://www.sqlite.org/faq.html#q14
    # That's right. Two single quotes in a row…
    singleQuoteEscapeSequence = "''"

    if @comparator is "like"
      val = "%#{@val}%"
    else

_ = require 'underscore'
{tableNameForJoin} = require '../models/utils'

# https://www.sqlite.org/faq.html#q14
# That's right. Two single quotes in a row…
singleQuoteEscapeSequence = "''"


###
Public: The Matcher class encapsulates a particular comparison clause on an {Attribute}.
