Skip to content

Commit 3885ebf

Browse files
committed
find and replacing multiple OR and AND
1 parent 5c5cd42 commit 3885ebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/Search/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class SearchContainer extends Component {
148148
let searchWarning = ''
149149
// help with copy paste
150150
if (searchIn) {
151-
searchIn = searchIn.toLowerCase().replace(/\s*:\s*/, ':').replace(' and ', ' AND ').replace(' or ', ' OR ')
151+
searchIn = searchIn.toLowerCase().replace(/\s*:\s*/, ':').replace(/ and /g, ' AND ').replace(/ or /g, ' OR ')
152152
}
153153
if (searchIn && searchIn.indexOf(':') === -1) {
154154
// Default to search in all fields

0 commit comments

Comments
 (0)