like (pattern, flags) {
    return new RegExp(`^${(escape(pattern).replace(percentRegExp, '.*').replace(underscoreRegExp, '.'))}$`, flags)
  }
Implementation used by the `like` operator. Takes a pattern and flags and
returns a `RegExp` instance that can test strings.

@method Query#like
@param {string} pattern Testing pattern.
@param {string} flags Flags for the regular expression.
@returns {RegExp} Regular expression for testing strings.
@since 3.0.0