mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +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 ") + ")"
|
return "NOT (" + wheres.join(" AND ") + ")"
|
||||||
|
|
||||||
class SearchMatcher extends Matcher
|
class SearchMatcher extends Matcher
|
||||||
constructor: (@searchQuery) ->
|
constructor: (searchQuery) ->
|
||||||
super(null, null, null)
|
super(null, null, null)
|
||||||
|
@searchQuery = (
|
||||||
|
searchQuery.trim()
|
||||||
|
.replace(/^['"]/, "")
|
||||||
|
.replace(/['"]$/, "")
|
||||||
|
)
|
||||||
@
|
@
|
||||||
|
|
||||||
attribute: =>
|
attribute: =>
|
||||||
|
|
Loading…
Reference in a new issue