Skip to content

Commit

Permalink
fix: search filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Jan 17, 2025
1 parent 4fc1d3d commit 7098302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options/views/search/SearchTorrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ export default Vue.extend({
// 将项目标题和副标题组合并转化为小写
const source = (item.title + (item.subTitle || "")).toLowerCase();

const includeResult = includes.length === 0 || includes.some(key => source.includes(key));
const includeResult = includes.length === 0 || includes.every(key => source.includes(key));
const excludeResult = excludes.length === 0 || !excludes.some(key => source.includes(key));

return includeResult && excludeResult;
Expand Down

0 comments on commit 7098302

Please sign in to comment.