Merge pull request #32769 from nextcloud/enh/32749/regex-universal-search

Specify the filter first for unified search
This commit is contained in:
Vincent Petry 2022-06-09 12:03:59 +02:00 committed by GitHub
commit e56a072fa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -31,8 +31,8 @@ export const defaultLimit = loadState('unified-search', 'limit-default')
export const minSearchLength = loadState('unified-search', 'min-search-length', 2)
export const enableLiveSearch = loadState('unified-search', 'live-search', true)
export const regexFilterIn = /[^-]in:([a-z_-]+)/ig
export const regexFilterNot = /-in:([a-z_-]+)/ig
export const regexFilterIn = /(^|\s)in:([a-z_-]+)/ig
export const regexFilterNot = /(^|\s)-in:([a-z_-]+)/ig
/**
* Create a cancel token

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long