Skip to content

Commit

Permalink
Merge pull request #32769 from nextcloud/enh/32749/regex-universal-se…
Browse files Browse the repository at this point in the history
…arch

Specify the filter first for unified search
  • Loading branch information
PVince81 authored Jun 9, 2022
2 parents 211361d + 78786a2 commit e56a072
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/services/UnifiedSearchService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit e56a072

Please sign in to comment.