Поправлен баг
This commit is contained in:
@@ -413,7 +413,7 @@ class DbSearcher {
|
|||||||
`;
|
`;
|
||||||
filter += `
|
filter += `
|
||||||
const genres = book.genre.split(',');
|
const genres = book.genre.split(',');
|
||||||
let found = false;
|
found = false;
|
||||||
for (const g of genres) {
|
for (const g of genres) {
|
||||||
if (checkGenre(g)) {
|
if (checkGenre(g)) {
|
||||||
found = true;
|
found = true;
|
||||||
@@ -452,7 +452,7 @@ class DbSearcher {
|
|||||||
|
|
||||||
filter += `
|
filter += `
|
||||||
const author = splitAuthor(book.author);
|
const author = splitAuthor(book.author);
|
||||||
let found = false;
|
found = false;
|
||||||
for (const a of author) {
|
for (const a of author) {
|
||||||
if (checkAuthor(a)) {
|
if (checkAuthor(a)) {
|
||||||
found = true;
|
found = true;
|
||||||
@@ -474,6 +474,7 @@ class DbSearcher {
|
|||||||
${closures}
|
${closures}
|
||||||
|
|
||||||
const filterBook = (book) => {
|
const filterBook = (book) => {
|
||||||
|
let found = false;
|
||||||
${filter}
|
${filter}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user