mirror of https://gitlab.com/bashrc2/epicyon
Remove trailing spaces from search string
parent
1f6a8c02ee
commit
47d68b3c4e
|
@ -2196,7 +2196,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
searchStr = searchStr.split('&')[0]
|
searchStr = searchStr.split('&')[0]
|
||||||
searchStr = \
|
searchStr = \
|
||||||
urllib.parse.unquote_plus(searchStr.strip())
|
urllib.parse.unquote_plus(searchStr.strip())
|
||||||
searchStr2 = searchStr.lower().strip('\n').strip('\r')
|
searchStr = searchStr.lower().strip()
|
||||||
print('searchStr: ' + searchStr)
|
print('searchStr: ' + searchStr)
|
||||||
if searchForEmoji:
|
if searchForEmoji:
|
||||||
searchStr = ':' + searchStr + ':'
|
searchStr = ':' + searchStr + ':'
|
||||||
|
@ -2324,11 +2324,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
elif (searchStr.startswith(':') or
|
elif (searchStr.startswith(':') or
|
||||||
searchStr2.endswith(' emoji')):
|
searchStr.endswith(' emoji')):
|
||||||
# eg. "cat emoji"
|
# eg. "cat emoji"
|
||||||
if searchStr2.endswith(' emoji'):
|
if searchStr.endswith(' emoji'):
|
||||||
searchStr = \
|
searchStr = \
|
||||||
searchStr2.replace(' emoji', '')
|
searchStr.replace(' emoji', '')
|
||||||
# emoji search
|
# emoji search
|
||||||
emojiStr = \
|
emojiStr = \
|
||||||
htmlSearchEmoji(self.server.translate,
|
htmlSearchEmoji(self.server.translate,
|
||||||
|
|
Loading…
Reference in New Issue