Skip to content

Commit 0804ea1

Browse files
Merge pull request kgrgreer#4639 from kgrgreer/fix-text-search-mql-and-keyword
Fix falling back to keyword search
2 parents bc4a2c5 + 34521d0 commit 0804ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/foam/u2/search/TextSearchView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ foam.CLASS({
154154
}
155155
// TODO: dont think we ever use anything other than richSearch, maybe remove the boolean and only perform richSearch
156156
if ( this.richSearch ) {
157-
var mql = this.queryParser.parseString(value);
157+
var mql = value.indexOf(':') != -1 && this.queryParser.parseString(value);
158158
if ( this.searchMode === this.SearchMode.MQL || mql ) {
159159
this.predicate = mql || this.FALSE;
160160
} else {

0 commit comments

Comments
 (0)