diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-06-08 19:49:03 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-06-08 19:56:41 +0200 |
commit | 78786a2887801ffa91fe762c022ea512b06a4fb9 (patch) | |
tree | 2bb31f2cbedb175c8dafee0bd0a5707ec9e85a15 /core/src/services | |
parent | de6b0dadbe5190325d0507ba1438880d772d8a8a (diff) | |
download | nextcloud-server-78786a2887801ffa91fe762c022ea512b06a4fb9.tar.gz nextcloud-server-78786a2887801ffa91fe762c022ea512b06a4fb9.zip |
Specify the filter first for unified search
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/src/services')
-rw-r--r-- | core/src/services/UnifiedSearchService.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js index 9d0bf84d58f..f365a378e0c 100644 --- a/core/src/services/UnifiedSearchService.js +++ b/core/src/services/UnifiedSearchService.js @@ -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 |