#1297 Support tilde in search
Merged 3 years ago by mikem. Opened 3 years ago by churchyard.
churchyard/koji tilde  into  master

file modified
+1 -1
@@ -2215,7 +2215,7 @@ 

               '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

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

3 years ago

Commit 5146e91 fixes this pull-request

Pull-Request has been merged by mikem

3 years ago