aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/services
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-05 12:56:11 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-09-03 09:03:09 +0200
commitf359529555fbf6fa344869d01f0b3c17ecce46c8 (patch)
treedbd2458d47cd6c585297930049fe7a8968390e12 /core/src/services
parent34aca4632574d153c716589a08497c0957b3679f (diff)
downloadnextcloud-server-f359529555fbf6fa344869d01f0b3c17ecce46c8.tar.gz
nextcloud-server-f359529555fbf6fa344869d01f0b3c17ecce46c8.zip
Allow unified search filtering
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/services')
-rw-r--r--core/src/services/UnifiedSearchService.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js
index 1507ad5a2bd..152de3755f7 100644
--- a/core/src/services/UnifiedSearchService.js
+++ b/core/src/services/UnifiedSearchService.js
@@ -25,6 +25,9 @@ import axios from '@nextcloud/axios'
export const defaultLimit = loadState('unified-search', 'limit-default')
export const minSearchLength = 2
+export const regexFilterIn = /[^-]in:([a-z_-]+)/ig
+export const regexFilterNot = /-in:([a-z_-]+)/ig
+
/**
* Get the list of available search providers
*