yggtorrent, yggcookie: fix exact match search (#13466)

This commit is contained in:
Adam Le Bon 2022-08-11 23:16:26 +02:00 committed by GitHub
parent 3a36ef4b24
commit 37390b8572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ search:
- name: trim
# put each word in quotations to prevent exact phrase search
- name: re_replace
args: ["(\\w+)", "\"$1\""]
args: ["([^\\s]+)", "\"$1\""]
paths:
- path: "engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&order={{ .Config.type }}&sort={{ .Config.sort }}"
followredirect: true

View File

@ -234,7 +234,7 @@ search:
- name: trim
# put each word in quotations to prevent exact phrase search
- name: re_replace
args: ["(\\w+)", "\"$1\""]
args: ["([^\\s]+)", "\"$1\""]
paths:
- path: "engine/search?category={{ .Config.category }}&name={{ .Keywords }}&description=&file=&uploader=&sub_category=&do=search&order={{ .Config.type }}&sort={{ .Config.sort }}"
followredirect: true