mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
cypress tests will really pass
This commit is contained in:
parent
1060a2f6d0
commit
57101b80bf
@ -95,10 +95,11 @@ const createPostQuery = str => {
|
||||
}
|
||||
// start globbing ...
|
||||
escapedString.split(' ').forEach(s => {
|
||||
if (!s.matches(/^(AND|OR|NOT)$/))
|
||||
if (!s.match(/^(AND|OR|NOT)$/i)) {
|
||||
// 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 ~
|
||||
return result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user