mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
fix(search): Escape search query properly
This commit is contained in:
parent
c0d9915318
commit
76ccab606e
1 changed files with 6 additions and 1 deletions
|
@ -208,8 +208,13 @@ class NotCompositeMatcher extends Matcher
|
|||
return "NOT (" + wheres.join(" AND ") + ")"
|
||||
|
||||
class SearchMatcher extends Matcher
|
||||
constructor: (@searchQuery) ->
|
||||
constructor: (searchQuery) ->
|
||||
super(null, null, null)
|
||||
@searchQuery = (
|
||||
searchQuery.trim()
|
||||
.replace(/^['"]/, "")
|
||||
.replace(/['"]$/, "")
|
||||
)
|
||||
@
|
||||
|
||||
attribute: =>
|
||||
|
|
Loading…
Reference in a new issue