Support tilde in search
Fixes https://pagure.io/koji/issue/1294 Signed-off-by: Miro Hrončok <miro@hroncok.cz>
This commit is contained in:
parent
5eeb69aa31
commit
32977881f6
1 changed files with 1 additions and 1 deletions
|
|
@ -2215,7 +2215,7 @@ _infoURLs = {'package': 'packageinfo?packageID=%(id)i',
|
|||
'win': 'archiveinfo?archiveID=%(id)i'}
|
||||
|
||||
_VALID_SEARCH_CHARS = r"""a-zA-Z0-9"""
|
||||
_VALID_SEARCH_SYMS = r""" @.,_/\()%+-*?|[]^$"""
|
||||
_VALID_SEARCH_SYMS = r""" @.,_/\()%+-~*?|[]^$"""
|
||||
_VALID_SEARCH_RE = re.compile('^[' + _VALID_SEARCH_CHARS + re.escape(_VALID_SEARCH_SYMS) + ']+$')
|
||||
_DEFAULT_SEARCH_ORDER = {
|
||||
# For searches against large tables, use '-id' to show most recent first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue