Fix: Quoted phrase plain-string queries

This commit is contained in:
Adam Porter 2019-10-19 01:53:34 -05:00
parent 43b94dd4a8
commit 7a4a41e402
3 changed files with 4 additions and 1 deletions

View file

@ -235,6 +235,8 @@ RESULTS should be a list of strings as returned by
(expect (org-ql--plain-query "scheduled")
;; No colon after keyword, so not a predicate query.
:to-equal '(regexp "scheduled"))
(expect (org-ql--plain-query "\"quoted phrase\"")
:to-equal '(regexp "quoted phrase"))
(expect (org-ql--plain-query "regexp:word")
:to-equal '(regexp "word"))
(expect (org-ql--plain-query "regexp:\"quoted phrase\"")