cypress tests will pass

This commit is contained in:
Moriz Wahl 2020-03-10 02:11:34 +01:00 committed by mattwr18
parent 9cb489dce1
commit 1060a2f6d0

View File

@ -95,8 +95,9 @@ const createPostQuery = str => {
}
// start globbing ...
escapedString.split(' ').forEach(s => {
if (s.length > 3)
if (!s.matches(/^(AND|OR|NOT)$/))
// at least 4 letters. So AND, OR and NOT are never used unquoted
// but the related cypress test expects a search for just two chars.
result += ' OR ' + s + '*'
})
// now we could become fuzzy using ~