bitspyder: fix category filtering and improve term search (#13965)

This commit is contained in:
Bogdan 2023-02-02 19:44:12 +02:00 committed by GitHub
parent 749167ba4a
commit 22af3a09a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -93,6 +93,7 @@ search:
paths:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
# 0 active, 1 incldead, 2 onlydead
incldead: 1
@ -101,10 +102,15 @@ search:
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
keywordsfilters:
- name: re_replace
args: ["\\s+", " "] # More than 1 space to 1 space
- name: re_replace
args: ["(\\w+)", "+$1"] # prepend + to each word
- name: trim
rows:
selector: table > tbody > tr[class]
filters:
- name: andmatch
fields:
# there are two styles, we support both