This commit is contained in:
mattwr18 2019-09-04 08:12:11 +02:00
parent 9bb0884f89
commit fdee7efa03
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ export default {
sanitizeQuery(query) { sanitizeQuery(query) {
if (this.suggestionType === HASHTAG) { if (this.suggestionType === HASHTAG) {
const regexMatchAllNonUnicodeOrDigits = build('[^\\pL0-9]') const regexMatchAllNonUnicodeOrDigits = build('[^\\pL0-9]')
query = replace(query, regX, '', 'all') query = replace(query, regexMatchAllNonUnicodeOrDigits, '', 'all')
// if the query is only made of digits, make it empty // if the query is only made of digits, make it empty
return query.replace(/[0-9]/gm, '') === '' ? '' : query return query.replace(/[0-9]/gm, '') === '' ? '' : query
} }