allow seaching longer urls (#521)

Co-authored-by: rleed <rleed1@pm.me>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
This commit is contained in:
rleed 2023-10-02 21:55:51 -03:00 committed by GitHub
parent c0c691eda5
commit 073fc6b848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ export default {
query = queryArr.filter(word => !exclude.includes(word)).join(' ')
if (url) {
whatArr.push({ wildcard: { url: `*${url.slice(4).toLowerCase()}*` } })
whatArr.push({ match_phrase: { url: `${url.slice(4).toLowerCase()}` } })
}
if (nym) {