Skip to content

Commit e56a072

Browse files
authored
Merge pull request #32769 from nextcloud/enh/32749/regex-universal-search
Specify the filter first for unified search
2 parents 211361d + 78786a2 commit e56a072

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/src/services/UnifiedSearchService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const defaultLimit = loadState('unified-search', 'limit-default')
3131
export const minSearchLength = loadState('unified-search', 'min-search-length', 2)
3232
export const enableLiveSearch = loadState('unified-search', 'live-search', true)
3333

34-
export const regexFilterIn = /[^-]in:([a-z_-]+)/ig
35-
export const regexFilterNot = /-in:([a-z_-]+)/ig
34+
export const regexFilterIn = /(^|\s)in:([a-z_-]+)/ig
35+
export const regexFilterNot = /(^|\s)-in:([a-z_-]+)/ig
3636

3737
/**
3838
* Create a cancel token

0 commit comments

Comments
 (0)