mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-08-20 15:44:06 -05:00
fix text search bug
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -99,14 +99,14 @@ export default function search_api(input) {
|
||||
if (inputtext.length > 0) {
|
||||
inputtext = cleanInputRegex(inputtext);
|
||||
|
||||
let parm = (() => {
|
||||
let list = [
|
||||
{ 'gsx$tags': { "$or": inputtext }},
|
||||
const parm = (() => {
|
||||
const list = [
|
||||
{ 'gsx$tags': { '$regex': inputtext }},
|
||||
{ 'gsx$ability': { '$regex': inputtext }}
|
||||
]
|
||||
if (input.flavor) {
|
||||
list.push({ 'gsx$flavortext': { "$or": inputtext }});
|
||||
list.push({ 'gsx$artist': { "$or": inputtext }});
|
||||
list.push({ 'gsx$flavortext': { '$regex': inputtext }});
|
||||
list.push({ 'gsx$artist': { '$regex': inputtext }});
|
||||
}
|
||||
return list;
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user