mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #32769 from nextcloud/enh/32749/regex-universal-search
Specify the filter first for unified search
This commit is contained in:
commit
e56a072fa7
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
dist/core-unified-search.js
vendored
4
dist/core-unified-search.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-unified-search.js.map
vendored
2
dist/core-unified-search.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue